开发者

Function for F11 fullscreen using jQuery

Is it possible to dispaly a web page fullscreen as if you had pressed f11? In chrome this gets rid of tool bars and everything. I'm using jQuery but I haven't been able to fi开发者_JAVA百科nd info iff this is even possible.

Thanks for any help.


The real full screen behavior (F11) is not possible through javascript.

I also think that browsers should never allow access to such behavior because some really bad things could happen. Imagine malicous sites impersonating the user's desktop or something like that. Nasty.


Looks like the answer on this one is old. It's now possible using HTML5 API.

And @cherouvim was right, it can be pretty nasty. http://feross.org/html5-fullscreen-api-attack/


How about if by pressing a javascript linked button a new window would open in full-screen (or displaying address and scroll bars), and just copy the original's page link?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜