DiagnosticsElementEventHelper object
An object to access methods and events related to a DOM element.
Note These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.
Syntax
var oElementEventHelper = dom.getElementEventHelper(element);
DOM Information
Inheritance Hierarchy
The DiagnosticsElementEventHelper does not inherit from any class or interface.
Members
The DiagnosticsElementEventHelper object has these types of members:
- Methods
Methods
The DiagnosticsElementEventHelper object has these methods.
Method | Description |
---|---|
addEventListener | Registers an event listener of the given type to the object. |
getEventHandlers | Returns an array of DiagnosticsElementEventListeners. |
removeEventListener | Unregisters a previously registered event listener of the given type. |
Remarks
When event helpers are created on a body element (and only on a body element), the event helpers will not show certain events which JavaScript places on Window if they are added to the body. Here is a list of the affected event types:
- onload
- onunload
- onresize
- onscroll
- onbeforeunload
- onhelp
- onblur
- onfocus
- onbeforeprint
- onafterprint
- onhaschange
- popstate
- onpageshow
- onpagehide
- orientationchange