Can anyone point me to the documentation of the html Event
object?
The only reason i know a global Event
obje
The MDN site provides very reliable information: https://developer.mozilla.org/en/DOM/event. Your event.toElement
property is a non-standard Microsoft thing, a quick test showed undefined
for the property in Firefox:
Click
The correct property to use is target
. Also note that event
is not global, it is only a local variable. You are suggested to use addEventListener
for adding DOM events as described in the MDN page.
quirksmode.org has nice tables on compatibility across browsers.
W3schools... well http://w3fools.com
Since you want to know more about the IE-specific srcElement
property, consult Microsofts documention. From srcElement property:
Gets the element that the event was originally dispatched to. Compare to target.
Remarks
Note The srcElement property is provided for backward compatibility. Use the target property instead.