"click"
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ "click"
After the "mouseup" event, a "click" event fires on the most specific node that contained both the press and the release of the button.
For example: "mousedown" on <p> #1, then "mouseup" on <p> #2, the "click"
event will happen on the parent that contains both <p>.
compare:Element+boxes
:"", "", then
:"mousedown", "mouseup", "click"
replit ⟩
Eloquent JS ⟩ ⟩
⟩ ⟩ ⟩