Static Public Member Functions | |
Boolean | addEventListener (Node node, String eventType, Function listener, Boolean useCapture, Boolean unsupported_ok) |
Calls native DOM addEventListener in W3-compliant environments. | |
void | removeEventListener (Node node, String eventType, Function listener, Boolean useCapture) |
Calls native DOM removeEventListener in W3-compliant environments. | |
void | addWindowListener (String eventtype, Function func, Window win) |
There are "DOM 0" events on the window object such as "load" and "resize". | |
void | dispatchClick (Node node) |
Generates a 'click' event and dispatches it to the node. |
|
Calls native DOM addEventListener in W3-compliant environments.
If on IE5/IE6, uses Note that in general, window is not a Node (and Opera for example does not support window.addEventListener but does for real nodes). A window should not be passed to this function. See burst.web.WindowEvent.addWindowListener. For IE, attachEvent handlers will be called after any handler registered via inline attribute (or dynamic expando). IE documentation says that if there are multiple handlers for the same node and event registered via attachEvent, they will be called in "random order". Mozilla supports window.addEventListener. ICE has window.addEventListener but not attachEvent. |
|
There are "DOM 0" events on the window object such as "load" and "resize". However, the W3 addEventListener function as specified only on a Node, not a window. The potential events include: load unload resize abort error move Note that the body element might have any of these handlers. However, for a script executing in the "head" section of a page, typically document.body is null (document.documentElement exists though). It will use window.addEventListner or window.attachEvent if they are available, but no standard mandates them. Otherwise it will set the window member (window.onload or window.onresize, etc.), combining with any existing binding (running after whatever exists).
|
|
Generates a 'click' event and dispatches it to the node.
In W3-compliant environments, uses
In IE it uses
Otherwise it tries to call the
|
|
Calls native DOM removeEventListener in W3-compliant environments.
If on IE5/IE6, uses |