如何禁用“阻止此页面创建其他对话框”? [英] How to disable "prevent this page from creating additional dialogs"?

查看:393
本文介绍了如何禁用“阻止此页面创建其他对话框”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个利用JavaScript alert() confirm()对话框的web应用程序。 / p>

如何阻止Chrome显示此复选框? stack.imgur.com/sK877.pngalt =>



有没有可以修改的设置?



我知道我可以修改源代码,但我希望Chrome可以自动更新。



我不必担心其他浏览器,因为该应用程序只在Chrome中运行。



我有管理员访问运行应用程序的(Windows)机器。 (函数()){
alert(message); $($)$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $
},1000);
}


I'm developing a web app that utilises JavaScript alert() and confirm() dialogue boxes.

How can I stop Chrome from showing this checkbox?

Is there a setting I can modify?

I know I could modify the source code, but I'd like it so that Chrome could still auto-update.

I don't need to worry about other browsers since the app only runs in Chrome.

I have admin access to the (Windows) machines that run the app.

解决方案

function alertWithoutNotice(message){
    setTimeout(function(){
        alert(message);
    }, 1000);
}

这篇关于如何禁用“阻止此页面创建其他对话框”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆