简体   繁体   English

如何禁用浏览器关闭按钮

[英]How to disable browser close button

is there way to disable browsers close button and it will open after voting my polls. 有没有办法禁用浏览器的关闭按钮,它将在对我的投票进行投票后打开。 like firefox using JavaScript or jquery? 像使用JavaScript或jquery的Firefox? i created an auto open browser using C# for every 10am it will open my intranet web page and i want all viewers to vote my polls before leaving my page.. 我每隔10点使用C#创建一个自动打开的浏览器,它将打开我的Intranet网页,我希望所有查看者在离开我的页面之前都对我的投票进行投票。

No. It is absolutely impossible for a webpage to prevent users from closing or otherwise leaving it. 不能。网页绝对不可能阻止用户关闭或离开。

The unscrupulous would love to be able to display an unclosable window of rotating adverts to everyone who visited their website. 不道德的人希望能够向所有访问其网站的人显示一个不可关闭的旋转广告窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM