/ Published in: JavaScript

No permite ingresar la ñ o Ñ
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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>
Comments
