ive been reusing my javascript codes before & there seems to be no problem
but now, i have to use client side validation if there is any value on my textbox named emailadd within a form named form1. here is my jscript code:
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkUsername()
{
if (document.form1.emailadd.value.length == 0)
{
alert('Enter your email address');
document.form1.emailadd.focus()
return false;
}
form1.submit()
}
//-->
</SCRIPT>
then on my html code:
<input type="submit" name="Submit" value=http://www.webdeveloper.com/forum/archive/index.php/"Submit" onClick="javascript:checkUsername">
THEN THIS ERROR APPEARS:
document.form1.emailadd.value is null or not an object
can somebody help me?