在自动点击按钮上全屏显示 [英] Go fullscreen on autoclick button
问题描述
我必须在页面加载浏览器时通过自动点击网页上的按钮进入全屏。
我有全屏代码..
我尝试过:
https://jsfiddle.net/Lxn4etvf/
简单:你不能。
注意:在响应用户交互或设备方向更改时,必须调用此方法;否则它会失败。
如果没有这个限制,网上的每个垃圾邮件和诈骗网站都会在加载后立即全屏显示。
在您提出问题之前:不,没有办法绕过这个限制。不,这是客户的要求不会改变这一点。 :)
I have to make when the page load the browser should go Fullscreen by autoclicking the button on the webpage.
I have this code for fullscreen ..
What I have tried:
https://jsfiddle.net/Lxn4etvf/
Simple: You can't.
Note: This method must be called while responding to a user interaction or a device orientation change; otherwise it will fail.
Without that restriction, every spam and scam site on the net would be going full-screen as soon as they loaded.
And before you ask: no, there is no way around this restriction. And no, "it's a requirement from the customer" doesn't change that. :)
这篇关于在自动点击按钮上全屏显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!