Form checking with IE


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //called on onsubmit form event
  2. function checkForm(event)
  3. {
  4. var isValid = true; //contains the return value
  5.  
  6. //apply rules on the form
  7.  
  8. event.returnValue = isValid; //IE specific
  9. return isValid; //for standard browsers
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.