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) Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 20, 2007 Share Posted November 20, 2007 set an event listener Quote Link to comment 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 Quote Link to comment 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> Quote Link to comment 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.. Quote Link to comment 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? 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.