JavaScript Validator


<script language=”javascript” type=”text/livescript”> function validate() { if(document.getElementById(‘nickname’).value.search(/\S/)==-1) { alert(“User Name should not be blank”); document.getElementById(‘nickname’).focus(); return false; } if(document.getElementById(’email’).value.search(/\S/)==-1) { alert(“Email should not be blank”); document.getElementById(’email’).focus(); return false; } var […]

Read Article →