I'm trying to check that a form field has been filled
In IE5 I use something like:
function isBlank(box) {
if(document.form1.elements[box].value==""
{
alert("Sorry, this is a required field"
;
document.form1.elements[box].focus();
return false;
}
}
I thought that the following would work in both IE5 and NS6
function validlogin() {
If(document.getElementById("emailAddr"
.value==""
{
alert("No email"
;
return false;
}
}
But it doesn't! Any ideas?
Bob.
In IE5 I use something like:
function isBlank(box) {
if(document.form1.elements[box].value==""

{
alert("Sorry, this is a required field"

document.form1.elements[box].focus();
return false;
}
}
I thought that the following would work in both IE5 and NS6
function validlogin() {
If(document.getElementById("emailAddr"


{
alert("No email"

return false;
}
}
But it doesn't! Any ideas?
Bob.