/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if ( posText.value == '' || whiteSpace.test(posText.value) ) { alert("You're trying to send an Empty Email. Please type something and then get on your way."); } else if ( posEmail.value == '' && strCC.checked == true ) { alert("Why are you trying to CC yourself without an email?"); alert("Just for that..."); alert("I\'m Clearing all the fields!"); frmEl.reset(); alert("There. Satisified."); alert("Now start over!"); posName.focus(); } else { sendPosEmail(); } }
Comments
