por la incompatibilidad entre navegadores, úsalo así:
Código Javascript
:
Ver originalfunction alfanumerico(e,usuario){
if(e==null){
e=event;
}
if(e==null){
e=window.event; //IE
}
var tecla = (document.all) ? e.keyCode : e.which; //test IE, FF, GC, OP, SF ;-)
if(65<=tecla && tecla<=90 || 97<=tecla && tecla<=122 || 48<=tecla && tecla<=57 || tecla==8){
}else{
window.event.keyCode=0;
}
}
y no te olvides de colocar
event:
<input ... onkeypress="alfanumerico(
event,this);" ... />