Problem inPrevent this page form creating additional dialog

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
Post Reply
hkachhia
Posts: 28
Joined: May 26th, 2013, 10:51 pm

Problem inPrevent this page form creating additional dialog

Post by hkachhia »

Hi

I have created simple html page with JavaScript validation. Its working in fine all browser. also works fine in Firefox.

Problem :

I have display validation message using JavaScript alert. if user generate same error more than two time then Firefox display additional message with alert box " Prevent this page from creating additional dialog". If user select this then my JavaScript did not work in Firefox. Its working fine in chrome and other browser.

Any extra code needed for solution ?
Why Firefox ignore my code after selecting check box of Prevent message ?
User avatar
DanRaisch
Moderator
Posts: 127240
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Problem inPrevent this page form creating additional dia

Post by DanRaisch »

Moving to Web Development.
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: Problem inPrevent this page form creating additional dia

Post by trolly »

To my knowledge, selecting "Prevent ..." throws an exception which terminates your code if not caught.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
hkachhia
Posts: 28
Joined: May 26th, 2013, 10:51 pm

Re: Problem inPrevent this page form creating additional dia

Post by hkachhia »

trolly wrote:To my knowledge, selecting "Prevent ..." throws an exception which terminates your code if not caught.


You are right but what i mean to say after selecting, my JavaScript validation code did not work. In other browser its works fine if user select prevent. I want to keep my validation after selecting prevent in firefox.
As per my knowledge Prevent use for hide irritated message window of JavaScript, am i right ?
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: Problem inPrevent this page form creating additional dia

Post by trolly »

Yes but Firefox can not distinguish between legal and illegal use of an alert.

Hmm, you may use a floating div (by default invisible) instead of an alert.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
Post Reply