fix
This commit is contained in:
parent
c2dc7e0de2
commit
d40fbffdaa
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ There's a property `event.eventPhase` that tells us the number of the phase on w
|
|||
The event handling process:
|
||||
|
||||
- When an event happens -- the most nested element where it happens gets labeled as the "target element" (`event.target`).
|
||||
- Then the event first moves from the document root down the `event.target`, calling handlers assigned with `addEventListener(...., true)` on the way.
|
||||
- Then the event first moves from the document root down to the `event.target`, calling handlers assigned with `addEventListener(...., true)` on the way.
|
||||
- Then the event moves from `event.target` up to the root, calling handlers assigned using `on<event>` and `addEventListener` without the 3rd argument or with the 3rd argument `false`.
|
||||
|
||||
Each handler can access `event` object properties:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue