Jump to content

Field checks


Seltaeb

Recommended Posts

Ok, i'm just started with Javascript and i know not much about it, but i made a little script for my contact form, so people must fill in the things that are marked with " * ". But it's not working, i post it and i hope you can help me! Thanks!function checkform(){ if ( document.contact.naam.value == "" ){ alert ( "Voer uw naam in!" ); return false; } if ( document.contact.email.value == "" ){ alert ( "Voer uw email in!" ); return false; } return true ; }

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...