|
-
May 30th, 2002, 06:26 AM
#1
Thread Starter
Addicted Member
Netscape and javascript
Why doesnt this work when brosing with Netscape 6:
Nothing happens, the validation never executes!
<script ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function form1_onsubmit() {
//Check that NO fields are BLANK
if (form1.UserID.value == ""){
window.alert ("Username must be entered!");
form1.UserID.value = "";
form1.UserID.focus();
return false;
}
if (form1.password.value == ""){
window.alert ("Password must be entered!");
form1.password.focus();
return false;
}
}
//-->
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|