Revision: 37926
Updated Code
at December 20, 2010 22:32 by webbral
Updated Code
<script type="text/javascript"> function digitos(event){ if (window.event) { // IE key = event.keyCode; } else if (event.which) { // netscape key = event.which; } if (key != 8 || key != 13 || key < 48 || key > 57) return (((key > 47) && (key < 58)) || (key == 8 ) || (key == 13)); return true; } </script> <!--Campo Telefone--> <input type="text" onkeypress="return digitos(event, this);" />
Revision: 37925
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 20, 2010 22:27 by webbral
Initial Code
function digitos(event){ if (window.event) { // IE key = event.keyCode; } else if (event.which) { // netscape key = event.which; } if (key != 8 || key != 13 || key < 48 || key > 57) return (((key > 47) && (key < 58)) || (key == 8 ) || (key == 13)); return true; }
Initial URL
Initial Description
Initial Title
Máscara Só valores númericos (Only numeric values mask)
Initial Tags
javascript, html
Initial Language
JavaScript