Hola
zhares
Prueba este ejemplo:
Código PHP:
<html>
<head>
<script type="text/javascript">
function pulsar(e) {
tecla = (document.all) ? e.keyCode : e.which;
return (tecla!=44 && tecla!=46);
}
</script>
</head>
<body>
<input type="text" onkeypress = "return pulsar(event)" />
</body>
</html>
Saludos,