问题
Possible Duplicate:
Firefox extension: check if window is minimized
I've written a Firefox extension that need to be notified whenever you minimize/restore the browser window. What JavaScript event browser fires when you minimize/restore browser window?
Thanks in advance
回答1:
You should use the sizemodechange event, available in Firefox 8 and above. Note that you need to check whether window.windowState really changed, before Firefox 12 this event might fire during a regular resize.
来源:https://stackoverflow.com/questions/11687142/browser-window-minimize-maximize-event