1

I just made 2 alert in my example.js file

alert("test-javascript1");
alert("test-javascript2");

nothing else 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

Jamna
  • 2,561
  • 7
  • 28
  • 22
  • possible duplicate of [Why "Prevent this page from creating additional dialogs" appears in the alert box?](http://stackoverflow.com/questions/5848381/why-prevent-this-page-from-creating-additional-dialogs-appears-in-the-alert-bo) – Neil Apr 19 '12 at 20:25

4 Answers4

8

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).

Gabi Purcaru
  • 30,940
  • 9
  • 79
  • 95
4

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.

2

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).

Ben
  • 7,548
  • 31
  • 45
  • 1
    Incidentally, if you're using `alert` to do basic Javascript debugging, you might want to consider something like `console.log` instead. – Ben Jul 05 '11 at 10:37
1

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

Community
  • 1
  • 1
mozey
  • 2,222
  • 2
  • 27
  • 34