开发者

what does "prevent this page from creating additional dialogs" mean ? what should i do now?

开发者 https://www.devze.com 2023-03-17 14:20 出处:网络
I just made 2 alert in my example.js file alert(\"test-javascript1\"); alert(\"test-javascript2\"); nothing el开发者_运维技巧se in my file

I just made 2 alert in my example.js file

alert("test-javascript1");

alert("test-javascript2");

nothing el开发者_运维技巧se in my file

and in my second alert box I got this message prevent this page from creating additional dialogs

my question is why this message appears in second alert box and what should i do? should i click on that check box?

prevent this page from creating additional dialogs java script


That is a browser thing to help users get rid of annoying sites. If you click on that, alerts will still be fired, but you won't see them (which is not what you need if you are the developer).


The following steps show you how disable this Firefox feature:

  1. Start Firefox, and type about:config in the url bar. Firefox will show the preferences screen. Please take care not to make changes at random.

  2. Right click in the preferences area, and choose New > Integer from the popup menu.

  3. In the dialog box that now appears, enter dom.successive_dialog_time_limit, followed by the value 0 (zero). Press OK.

When you return to the Promasys WebCRF, this message will no longer appear when opening the same dialog box more than once.


This alert has nothing to do with your code (apart from the fact that your alert calls triggered it), it's functionality found in some browsers to prevent "run-away" alerts (because they're modal).


Have a look at this related answer: Why "Prevent this page from creating additional dialogs" appears in the alert box?

0

精彩评论

暂无评论...
验证码 换一张
取 消