开发者

Is there a way to fullscreen a browser window using jQuery or javascript? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How to make in 开发者_运维技巧Javascript full screen windows (stretching all over the screen)

I am designing a web app with the front-end in javascript and jQuery. It would make sense for the app to take over the client's entire screen (not to be confused with just the browser's viewport). Essentially, I would like the user to be able to click a button to enter into this fullscreen mode. (If you are aware of Netflix's fullscreen mode, that's the functionality I'm looking for.)

Does anybody have any ideas as to how I might implement this?


no way, josé!

This is a security feature to prevent spam and spoofing. It's up to the user to put his browser in fullscreen mode.


If that were possible without user intervention it would be a major security problem. Flash has a very controlled version of this which is only able to be triggered as a result of user input. I think that is what Netflix uses?


Something like this perhaps: https://developer.mozilla.org/en/window.resizeTo


If this were possible you would see it happen all the time with intrusive advertisements. Let's hope it remains impossible.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜