javascript email validation not work?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

javascript email validation not work?

I am reading a JavaScript error in your document. Here is what I got:

Error: document.validation has no properties
Source File: http://hostforasia.com/email_form3.php Line: 243

That line says: var str=document.validation.emailcheck.value

"validation" should be the name of your form
"emailcheck" should be the name of you email field.

I am guessing that you copied this function from somewhere? Try changing it to this:

str=document.form1.email.value

javascript email validation not work?

yeah, i copied from javastriptkit.com
i just follow the instruction and copied the code loh.
never make any change, later go and try your tips, thank you.

User login