Documentation

EventTarget

EventTarget

Tags
link
https://dom.spec.whatwg.org/#eventtarget

Table of Contents

Methods

addEventListener()  : void
dispatchEvent()  : bool
removeEventListener()  : void

Methods

addEventListener()

public addEventListener(string $type, callable $listener[, bool $capture = false ]) : void
Parameters
$type : string
$listener : callable
$capture : bool = false

dispatchEvent()

public dispatchEvent(mixed $event) : bool
Parameters
$event : mixed
Return values
bool

removeEventListener()

public removeEventListener(string $type, callable $listener[, bool $capture = false ]) : void
Parameters
$type : string
$listener : callable
$capture : bool = false

        
On this page

Search results