jaymc Posted November 2, 2007 Share Posted November 2, 2007 I want to find out when a window has been brought back to the top of the screen Basically, someone may minimize a popup. When they maximize it, I need to execute a javascript function window.focus may have something to do with it. Any ideas? Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 2, 2007 Share Posted November 2, 2007 actually window.onfocus an example <script> window.onfocus = function() { alert('hi'); } </script> Quote Link to comment Share on other sites More sharing options...
jaymc Posted November 2, 2007 Author Share Posted November 2, 2007 Ahh how silly of me, I thought there was more to it than that Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.