http://developer.mozilla.org/en/docs....dispatchEvent
I don't know if it works in IE. There probably is a version for it, but if there is, I'm not sure what it is. In any case you could always manually call the event handling functions yourself. The only issue would be that this could be a little cumbersome if there are many functions. An example of what I mean:
Code:
function clickHandler1(e) {/*do something*/}
. . .
clickHandler1({
pageX: 100,
pageY: 50,
target: document.getElementById("theTarget")
// All other necessary event attributes go here as well
});
Bookmarks