Full Screen Page by pressing button instead of F11 [duplicate]

蹲街弑〆低调 提交于 2019-12-02 12:21:36

问题


Possible Duplicates:
How to make in Javascript full screen windows (stretching all over the screen)
Simulate JavaScript Key Events

I want to simulate F11 by the user pressing a button using javascript only, is this possible? I know its possible with a flash page. Thanks in advance.


回答1:


I doubt that there is any officially supported way because browsers are such a popular attack-vector, faking user keypresses would be an effective way to do bad things (vis click-fraud). That said, this question has some suggestions for simulating keypresses.



来源:https://stackoverflow.com/questions/6427690/full-screen-page-by-pressing-button-instead-of-f11

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