-1

I am using javascript alert message to show validation messages. In Firefox and Chrome first time working fine,second time for same alert same its asking message like "Prevent this page from creating additional dialogs" with check box. After select that check box, Next time button click scripts not executing. How to block that message?

ThiefMaster
  • 310,957
  • 84
  • 592
  • 636
KSEL
  • 19
  • 4

4 Answers4

0

Use a JavaScript Modal popup! eg. JQuery UI Modal Popup

Ramesh
  • 13,043
  • 3
  • 52
  • 88
0

its a browser property for the client,if he doesnt want to view these alerts. you cant remove that check box and message.

if this message is shown then what the problem, leave it for the user.

why you want to force him to view these alerts, it must be user's wish to see or not see these alerts.

for better user experience and for your purpose you can use fancybox or facebox

fancy box fiddler check this http://jsfiddle.net/BJNYr/

Govind Singh
  • 15,282
  • 14
  • 72
  • 106
0

This is a browser matter, so you as a developer cant do anything with that behavior.

Here is a similar question already answered here

Community
  • 1
  • 1
thsorens
  • 1,308
  • 12
  • 21
0

unfortunately you can't be sure that user has his browser settings with javascript alerts popup on ( that called with 'alert('...') function'). You should use javascript dialog plygin instead. For example: http://fancybox.net/

Stanislav Terletskyi
  • 2,072
  • 20
  • 17