Share via


addEventListener method

Registers an event listener of the given type to the object.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

*object.*addEventListener(eventType, callback)

Parameters

  • eventType [in]
    Type: DOMString

  • callback [in]
    Type: Function

Return value

This method does not return a value.

Remarks

Callbacks are called in order of registration.

See also

DiagnosticsBrowser

DiagnosticsElementEventHelper

DiagnosticsExternal

DiagnosticsWebWorker

WebWorkerDiagnosticsDiagnostics