if (nick.value.length == 0) { alert("wrong name"); nick.focus(); return; } if (nick.value.length >= 50) { alert("wrong name"); nick.focus(); return; }
var splChars = "*|,\":<>[]{}`\';()@&$#%"; for (var i = 0; i < nick.value.length; i++) { if (splChars.indexOf(nick.value.charAt(i)) != -1){ alert ("Illegal characters detected!"); nick.focus(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)