Page-Visibility A wrapper for visibilitychange event Usage window.visibility.change(callback); // Binds a listener to visibilitychange event window.visibility.isVisible(); window.visibility.isHidden(); See test.html for a detailed example