Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.DOMDebugger.EventListener
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { EventListener } = Protocol.DOMDebugger;

Object event listener.

Properties

type: string

EventListener's type.

useCapture: boolean

EventListener's useCapture.

passive: boolean

EventListener's passive flag.

once: boolean

EventListener's once flag.

Script id of the handler code.

lineNumber: integer

Line number in the script (0-based).

columnNumber: integer

Column number in the script (0-based).

optional
handler: Runtime.RemoteObject

Event handler function value.

optional
originalHandler: Runtime.RemoteObject

Event original handler function value.

optional
backendNodeId: DOM.BackendNodeId

Node the listener is added to (if any).