Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
Javascript validation works in IE but not Firefox
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="goga, post: 4922435"] Hi there, The following simple validation code works in internet explorer but doesn't in firefox. Specifically, in firefox shows the alert message and then loads the action page anyway. Any help appreciated!! <head> <title>test</title> <SCRIPT type="text/javascript" LANGUAGE="JavaScript"> function validate() { alert('hello'); return false; } </SCRIPT> </head> <body> <form method="post" name="signup" ID="myform" action="[URL]http://www.google.com[/URL]"> <input type="submit" name="action" ID="myinput" value="submit" onMouseDown="validate();" > </form> </body> [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
Javascript validation works in IE but not Firefox
Top