jaymc Posted November 16, 2007 Share Posted November 16, 2007 I need to know when/if a window is minimized and maximized I have google for about 30 minutes and cant find anything isMinimize() ? Not working So yeh, I need to say if(the window is currently minimized) or if(the window has just been minimized) Link to comment https://forums.phpfreaks.com/topic/77550-minimize-maximize/ Share on other sites More sharing options...
jaymc Posted November 20, 2007 Author Share Posted November 20, 2007 Anyone know this one.. quite tricky eh Link to comment https://forums.phpfreaks.com/topic/77550-minimize-maximize/#findComment-394806 Share on other sites More sharing options...
phpQuestioner Posted November 20, 2007 Share Posted November 20, 2007 set an event listener Link to comment https://forums.phpfreaks.com/topic/77550-minimize-maximize/#findComment-394903 Share on other sites More sharing options...
jaymc Posted November 21, 2007 Author Share Posted November 21, 2007 To listen to what? What checks the status of a window, thats what I dont know and cant find out Link to comment https://forums.phpfreaks.com/topic/77550-minimize-maximize/#findComment-395914 Share on other sites More sharing options...
phpQuestioner Posted November 22, 2007 Share Posted November 22, 2007 <script language="javascript"> function sizechange() { alert("You Have Change This Window's Size"); } window.onresize=function() { sizechange(); } </script> Link to comment https://forums.phpfreaks.com/topic/77550-minimize-maximize/#findComment-396381 Share on other sites More sharing options...
jaymc Posted November 23, 2007 Author Share Posted November 23, 2007 That only works if you manually adjust the size of the window It has not effect with MINIMIZING it.. Link to comment https://forums.phpfreaks.com/topic/77550-minimize-maximize/#findComment-397184 Share on other sites More sharing options...
phpQuestioner Posted November 23, 2007 Share Posted November 23, 2007 well do this then: <script language="javascript"> function miny() { alert("Your Not Focused On This Page"); } window.onblur=function() { miny(); } </script> but what is the point of that? why do you want to detect when the window is minimized? Link to comment https://forums.phpfreaks.com/topic/77550-minimize-maximize/#findComment-397192 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.