I have a form with a field like:
<td width='30%' align='center'>
<input name='prod_partnum1' type='text' id='prod_partnum1' size='20' maxlength='20' color='#333333' value='$prod_partnum1'>
</td>
<td width='30%' align='center'>
<input onchange='ceck_modulo1();' id='prod_partnumver1' name='prod_partnumver1' value=''>
</td>
and this is java for check_modulo
function check_modulo1() {
<!---->
if (document.modulo.prod_partnumver1.value == "" || document.modulo.prod_partnumver1.value != document.modulo.prod_partnum1.value) {
document.modulo.prod_partnumver1.value = "";
document.modulo.prod_partnumver1.style.backgroundColor = "#FF0000";
document.getElementById('line1').style.backgroundColor = "#FF0000";
document.modulo.prod_partnumver1.innerHTML = '<audio autoplay="autoplay"><source src="NuclearAlert.mp3" type="audio/mpeg" /><embed hidden="true" autostart="true" loop="false" src="NuclearAlert.mp3" /></audio>';
document.modulo.prod_partnumver2.focus();
document.modulo.prod_partnumver1.focus();
} else {
document.modulo.prod_partnumver1.innerHTML = '<audio autoplay="autoplay"><source src="SmallBlink.mp3" type="audio/mpeg" /><embed hidden="true" autostart="true" loop="false" src="SmallBlink.mp3" /></audio>';
document.modulo.prod_partnumver1.style.backgroundColor = "#008800";
document.getElementById('line1').style.backgroundColor = "#008800";
document.modulo.prod_partnumver2.focus();
}
onchange works just with crome and ff but not with any version of internet explorer 7 , 11
The problem is: the text field prod_partnumver1 is field to write barcode scanned by barcode gun, and when a put barcode with a gun if is crome work perfect with internet explorer, not for working need I click with the mouse in another text field. With chrome it works perfect when a write with barcode scanner verify the field and if is correct go to the next... like java ceck_modulo1 work.....
Thanks for any help.