Code I need to change


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



Copy this code and paste it in your HTML
  1. if ( posText.value == '' || whiteSpace.test(posText.value) ) {
  2. alert("You're trying to send an Empty Email. Please type something and then get on your way.");
  3. }
  4. else if ( posEmail.value == '' && strCC.checked == true ) {
  5. alert("Why are you trying to CC yourself without an email?");
  6. alert("Just for that...");
  7. alert("I\'m Clearing all the fields!");
  8. frmEl.reset();
  9. alert("There. Satisified.");
  10. alert("Now start over!");
  11. posName.focus();
  12. }
  13. else {
  14. sendPosEmail();
  15. }
  16. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.