Scusate, ma è possibile che questo codice


<script language="javascript" type="text/javascript">
// <!CDATA[
window.onload = function()
{
document.getElementById("orai").focus();

document.getElementById("orai").onblur = somma;
document.getElementById("oraf").onblur = somma;
}

function somma()
{
var x = parseFloat( "0" + document.getElementById("orai").value);
var y = parseFloat( "0" + document.getElementById("oraf").value);
var z = y - x;
document.getElementById("totore").value = z;
}


// ]]>
</script>




mi funzioni in FIREFOX e non in I.E. ??

I.E. non mi da nessun errore, solo che la sottrazione è sempre 0.... :master: :master: :master: