Browser window minimize/maximize event [duplicate]

自作多情 提交于 2019-12-12 01:05:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!