开发者

Switching the browser to full screen from Javascript, possible? [duplicate]

This question already has answers here: 开发者_如何学编程 Switch window between normal and full-screen mode (2 answers) Closed 9 years ago.

Is it possible to switch the browser into and out of full screen mode (simulate an F11 key press) from Javascript?

I want to have a button that will make the switch. This have to affect the current browser window, it can't open a new window.


You can open new javascript window in full screen mode (called theater mode). Not sure what all browser do support at this time, but IE used to do. You cannot access the current window ability to enlarge to full window.


I certainly hope it's not possible : do you realize how much that would be abused ?

Do you remember about popups and ads, a couple of years ago ?
Do you imagine how it would be like if those ad-popup would have been able to switch to full-screen ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜