bgreenhouse
Technical User
Hi
I am using the following function (called when a submit image is clicked on) to validate a form:
function validate() {
if (document.login.Cardnum.value ==""
{
alert("Please input your card number."
return;
}
else if (document.login.PIN.value ==""
{
alert("Please input your PIN number."
return;
}
document.login.submit();
}
in IE I get the alert boxes popping up twice, while in Netscape it works fine (i.e. only once) any suggestions?
Ben
I am using the following function (called when a submit image is clicked on) to validate a form:
function validate() {
if (document.login.Cardnum.value ==""
{
alert("Please input your card number."
return;
}
else if (document.login.PIN.value ==""
{
alert("Please input your PIN number."
return;
}
document.login.submit();
}
in IE I get the alert boxes popping up twice, while in Netscape it works fine (i.e. only once) any suggestions?
Ben