DOM.EventListener

A structure holding event listener properties.

{
  "id": "EventListener",
  "type": "object",
  "properties": [
    {
      "name": "type",
      "type": "string",
      "description": "EventListener's type."
    },
    {
      "name": "useCapture",
      "type": "boolean",
      "description": "EventListener's useCapture."
    },
    {
      "name": "isAttribute",
      "type": "boolean",
      "description": "EventListener's isAttribute."
    },
    {
      "name": "nodeId",
      "$ref": "NodeId",
      "description": "Target DOMNode id."
    },
    {
      "name": "handlerBody",
      "type": "string",
      "description": "Event handler function body."
    },
    {
      "name": "location",
      "$ref": "Debugger.Location",
      "optional": true,
      "description": "Handler code location."
    },
    {
      "name": "sourceName",
      "type": "string",
      "optional": true,
      "description": "Source script URL."
    },
    {
      "name": "handler",
      "$ref": "Runtime.RemoteObject",
      "optional": true,
      "description": "Event handler function value."
    }
  ],
  "description": "A structure holding event listener properties."
}