== Events ==

Events (Topic)

This topic contains all functions that are directly related to Events: ===== Attatch/remove ===== * [[toolbox:event:on:index|.on()]] – attaches an event handler to an element. * [[toolbox:event:once:index|.once()]] – same as .on, but the handler will be detached automatically once it was called. * [[toolbox:event:off:index|.off()]] – detaches an event handler from an element. ===== Shorthand functions ===== * [[toolbox:event:onblur:index|.onBlur()]] – attaches an event handler to the “blur” event of any element. * [[toolbox:event:onclick:index|.onClick()]] – attaches an event handler to the “click” event of any element. * [[toolbox:event:onfocus:index|.onFocus()]] – attaches an event handler to the “focus” event of any element. * [[toolbox:event:onsubmit:index|.onSubmit()]] – attaches an event handler to the “submit” event of a form element. * [[toolbox:event:onready:index|.onReady()]] – attaches an event handler to the “ready” event of the document. ===== More information ===== * [[mdn>Web/API/Event|Event]] on MDN.