I try to create a page that will show in a sidebar panel in Opera. I’d like to know when user sees it or not. The problem is when a user closes the panel the page is still active – all javascript functions run – I need to stop them when user closes the panel.
Share
You can not realy detect that. Test the window size when the panel is closed.
To detect active tab in browsers you can use mousemove or mouseover events.
but it dose not work when the mouse is out of your window.