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? Link to comment https://forums.phpfreaks.com/topic/75762-solved-window-focus/ 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> Link to comment https://forums.phpfreaks.com/topic/75762-solved-window-focus/#findComment-383429 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 Link to comment https://forums.phpfreaks.com/topic/75762-solved-window-focus/#findComment-383511 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.