Visibility Change
This page was created to test the Visibility API .
You can test the API by creating a new browser tab or minimizing your browser and switching back to view or otherwise changing focus.
function handleVisibilityChange() { // Do stuff here } document.addEventListener('visibilitychange', handleVisibilityChange, false);