G
goga
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="http://www.google.com">
<input type="submit" name="action" ID="myinput" value="submit"
onMouseDown="validate();" >
</form>
</body>
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="http://www.google.com">
<input type="submit" name="action" ID="myinput" value="submit"
onMouseDown="validate();" >
</form>
</body>