B
Brian Genisio
Hi all,
Quick question... In IE, I noticed that if I call the fireEvent method
on an object, the default action does not get called.
For instance,
<a href="http://www.somewhere.com" id=myA><img src="someImg.jpg"
id=myImg></a>
if I call the following javascript:
document.getElementById("myImg").fireEvent("onclick")
or
document.getElementById("myA").fireEvent("onclick")
In both cases, it does not go to the URL in question.
If instead, I say document.getElementById("myImg").click(), the event
fires, AND it calls the default action, to go to the URL in question.
My question:
Does fireEvent _always_ cause the event to fire, without the default action?
Thanks,
Brian
Quick question... In IE, I noticed that if I call the fireEvent method
on an object, the default action does not get called.
For instance,
<a href="http://www.somewhere.com" id=myA><img src="someImg.jpg"
id=myImg></a>
if I call the following javascript:
document.getElementById("myImg").fireEvent("onclick")
or
document.getElementById("myA").fireEvent("onclick")
In both cases, it does not go to the URL in question.
If instead, I say document.getElementById("myImg").click(), the event
fires, AND it calls the default action, to go to the URL in question.
My question:
Does fireEvent _always_ cause the event to fire, without the default action?
Thanks,
Brian