Salve sono un nuovo utente con conoscenze di javascript molto limitate, spero vivamente in un vostro aiuto.
Ho questa pagina che mi funziona con Opera, ma non con IE 6
In tutti e due i browser mi riempie il campo Text1, ma con Opera effettua anche il submit() e quindi mi richiama l'applicazione webrilev.exe, mentre con IE 6 non lo fa.
Dove sbaglio ?
Ho cercato su internet, ma vedo che tutti hanno problemi inversi al mio...
Grazie in anticipo.
Marco
<html>
<head>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>Rilevazione Dati</title>
<script>
function keyPressHandler(e) {
var kC = e.keyCode ;
if (kC==27)
{
if(document.Barcode.Text1.value=="")
{
document.Barcode.Text1.value="0000000700009";
document.forms['Barcode'].submit();
}
else
{
document.forms['Barcode'].reset();
}
}
}
</script>
</head>
<body onLoad="document.Barcode.Text1.focus()" onkeydown="keyPressHandler(event)">
<form name="Barcode" method="post" action="webrilev.exe">
<input id="Text1" type="text" name="Codice">
<input id="Submit1" type="submit" value="INVIA _" name="Submit1">
</form>
</BODY>
</HTML>