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.

is there way detect if browser window not active?

hook tab changed event of browser

if use 'jquery', can .

$(window).blur(function(){   // code  }); $(window).focus(function(){   // code }); 

here link provides 1 more method it.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -