Revision: 6221
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 9, 2008 05:11 by buscarini
Initial Code
function alphanumeric(val){ var regex=/^[0-9A-Za-z]+$/; if(regex.test(val)){ return true; } else { return false; } } function blah(e){ var keynum = null; if(window.event) // IE { keynum = e.keyCode; } else if(e.which) // Netscape/Firefox/Opera { keynum = e.which; } if ( (keynum!=null)&& (alphanumeric(keynum) ) { // Se ha pulsado un alfanumérico }
Initial URL
Initial Description
Initial Title
Si un carácter es alfanumérico o no
Initial Tags
Initial Language
JavaScript