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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -