Código HTML:
<input name="Id" type="text" maxlength="16" id="Id" class="box" style="height:19px;width:170px;" />
admin,gunbound,administrador
Algo similar a esta funcion:
Código HTML:
function fnIDCheck(){ var formName = document.forms[0].name; var objID = eval("document." + formName + ".Id"); var objIDvalue = objID.value; var retVal; var Restricted_Word = "gunbound,admin,softnyx,fuck,suck,magicpunk,gm,master"; var Restricted_Word_List = Restricted_Word.split(","); }else{ retVal = isRestricted(objIDvalue); if ( retVal != "" ){ alert("You cannot use the particular character.[" + retVal + "]"); objID.focus(); return false; }
gracias.