Danny Beckett Danny Beckett - 1 month ago 8
Javascript Question

How to disable "prevent this page from creating additional dialogs"?

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.

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