event handler
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ handler
event (function) handler
argument:an Event object.
:
this
refers to the object on which the handler was registered.
: In modern JavaScript, event handlers should not return anything.
event handler can also be an object - 👉 see: object handler
-reflecting body element :
if you assign one of the following event handlers on , it will be reflected on too, and vice versa.
onblur, onerror, onfocus, onload, onresize, onscroll
📗
Eloquent JS ⟩