Is there an Javascript event for when a the page is pushed into the background?

Posted by Georg on Stack Overflow See other posts from Stack Overflow or by Georg
Published on 2010-06-17T19:28:29Z Indexed on 2010/06/17 19:33 UTC
Read the original article Hit count: 168

Filed under:
|
|

I remember having used such an event, but I can't remember the name.

The specific task I'm trying to accomplish is to stop my slideshow when the browser window isn't in the foreground. I'm fading the different images with jQuery, which uses quite some CPU power.

Is there an event that tells me, when the user switches to another application / page.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery