Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8885

onfocus or onblur with tabs

Date 2011-12-05 12:58 +1100
From Andrew Poulos <ap_prog@hotmail.com>
Newsgroups comp.lang.javascript
Subject onfocus or onblur with tabs
Message-ID <X7CdnSfYm9HZuEHTnZ2dnUVZ_rKdnZ2d@westnet.com.au> (permalink)

Show all headers | View raw


I can use window.open to open a new tab on mobile safari (on iOS 
devices) when the tab I opened loses focus, or the opener gains focus, I 
want to close the opened tab. Unfortunately I can't seem to get a 
window.onfocus or window.onblur to trigger.

Is there some way to know when a tab gains/loses focus?

Andrew Poulos

Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread


Thread

onfocus or onblur with tabs Andrew Poulos <ap_prog@hotmail.com> - 2011-12-05 12:58 +1100

csiph-web