javascript - What's the event for leaving the IE tab? -
i want javascript trigged when:
- the current ie tab switched out when multiple ie tabs open.
- when current ie tab closed.
- i don't want js code trigged in-page pops dialogs.
- when whole ie window closed.
the lose focus event may not work me because there pop diaglogs in page, when pops out, ie tab lose focus, since tab not switched or closed, don't want javascript trigged here.
is there solution? wondering if there's entering tab / leaving tab, or tab-switching events?
some interesting links, not resolve question.
if use 'jquery', can .
$(window).blur(function(){ // code }); $(window).focus(function(){ // code });
here link provides 1 more method it.
Comments
Post a Comment