Table of Contents
Attatch/remove
Shorthand functions
More information
Events
Events (Topic)
This topic contains all functions that are directly related to Events:
Attatch/remove
.on()
– attaches an event handler to an element.
.once()
– same as .on, but the handler will be detached automatically once it was called.
.off()
– detaches an event handler from an element.
Shorthand functions
.onBlur()
– attaches an event handler to the “blur” event of any element.
.onClick()
– attaches an event handler to the “click” event of any element.
.onFocus()
– attaches an event handler to the “focus” event of any element.
.onSubmit()
– attaches an event handler to the “submit” event of a form element.
.onReady()
– attaches an event handler to the “ready” event of the document.
More information
Event
on
MDN
.