Código HTML:
function soloNumeros(e){
tecla = (document.all) ? e.keyCode : e.which;
if (tecla==8) return true; //Tecla de retroceso (para poder borrar)
if (tecla==0) return true;
patron = /\d/;// Solo acepta números y el punto
te = String.fromCharCode(tecla);
return patron.test(te);
}
¿Saben ustede como puedo distinguir entre una y otra?
Gracias por su ayuda

