mark_l_sanders
07-30-2005, 12:43 PM
I'm using window.event.returnValue to cancel a default action in IE.
IE (v6 - xp pro sp2) has no problem setting this value to 'false', but when I try to detect support for this property it fails.
In other words, the following code fails:
if(window.event && window.event.returnValue){window.event.returnValue = false;}
but the following succeeds:
if (window.event){window.event.returnValue = false;}
What's going on - surely if IE supports an object enough to set it it should also be able to detect it!!
Any clues?
IE (v6 - xp pro sp2) has no problem setting this value to 'false', but when I try to detect support for this property it fails.
In other words, the following code fails:
if(window.event && window.event.returnValue){window.event.returnValue = false;}
but the following succeeds:
if (window.event){window.event.returnValue = false;}
What's going on - surely if IE supports an object enough to set it it should also be able to detect it!!
Any clues?