Return to Snippet

Revision: 38673
at January 6, 2011 04:58 by elquemero


Initial Code
<html>
<head>
<script>
//No permite ingresar la ñ o Ñ
function coma(e) {
    tecla=(document.all) ? e.keyCode : e.which;
	//alert(tecla);
    if (tecla==241 || tecla==209) {
       
        return false;
    }
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<input type="text" onKeyPress="return coma(event)">
</body>
</html>

Initial URL


Initial Description
No permite ingresar la ñ o Ñ

Initial Title
Prohibir ciertos caracteres en un input

Initial Tags
javascript, html, validation

Initial Language
JavaScript