Jump to content

How to Trap Maximize event of window


itsmeArry

Recommended Posts

??? I need to trap the event that is fired when a window is maximized.

 

I know there is a way to trap the event when a window is resized "window.resize" but I need to trap the event only when the window is maximized.

 

any help or a hint would be apprciated....

 

Thanks in advance ...

Link to comment
https://forums.phpfreaks.com/topic/41608-how-to-trap-maximize-event-of-window/
Share on other sites

trap the resize event and test the new browser window size and if it equals the users desktop size, then perform your function.  Here's a page that has the  properties you would need but I understand there is quite a bit of cross browser differences in this area and I can't help you with that:

 

http://www.w3schools.com/htmldom/dom_obj_window.asp

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.