B
Brian Genisio
Ok, I am confused. The following code works in Mozilla 1.5, but it
doesnt work in IE 6.
The wierd thing about the IE failure, is that the text is changed in the
onBlur event, but when I run alert, it is not changed yet.
Anyone know why this is? I am a bit baffled.
Brian
<HTML>
<HEAD>
<TITLE>Blur Test</TITLE>
</HEAD>
<BODY>
<SPAN id=mySPAN>BeforeCallback</SPAN>
<FORM name=myForm>
<INPUT id=myInput1 name=myInput1 type=text
onBlur="document.getElementById('mySPAN').innerHTML = 'blurred';">
</FORM>
<SCRIPT type="text/javascript">
input1 = document.getElementById("myInput1");
input1.focus();
input1.blur();
alert(document.getElementById('mySPAN').innerHTML);
</SCRIPT>
</BODY>
</HTML>
doesnt work in IE 6.
The wierd thing about the IE failure, is that the text is changed in the
onBlur event, but when I run alert, it is not changed yet.
Anyone know why this is? I am a bit baffled.
Brian
<HTML>
<HEAD>
<TITLE>Blur Test</TITLE>
</HEAD>
<BODY>
<SPAN id=mySPAN>BeforeCallback</SPAN>
<FORM name=myForm>
<INPUT id=myInput1 name=myInput1 type=text
onBlur="document.getElementById('mySPAN').innerHTML = 'blurred';">
</FORM>
<SCRIPT type="text/javascript">
input1 = document.getElementById("myInput1");
input1.focus();
input1.blur();
alert(document.getElementById('mySPAN').innerHTML);
</SCRIPT>
</BODY>
</HTML>