The blur event is raised when an element loses focus.
The blur event is raised when an element loses focus.
MDN
The change event is fired for input, select, and textarea elements when a change to the element's value is committed by the user.
The change event is fired for input, select, and textarea elements when a change to the element's value is committed by the user.
MDN
The focus event is raised when the user sets focus on the given element.
The focus event is raised when the user sets focus on the given element.
MDN
The input event is fired for input, select, textarea, and contentEditable elements when it gets user input.
Script to be run when an element is invalid
The reset event is fired when a form is reset.
The reset event is fired when a form is reset.
MDN
Fires when the user writes something in a search field (for <input="search">)
The select event only fires when text inside a text input or textarea is selected.
The select event only fires when text inside a text input or textarea is selected. The event is fired after the text has been selected.
MDN
The submit event is fired when the user clicks a submit button in a form (). MDN
The submit event is fired when the user clicks a submit button in a form (). MDN
(Since version ) see corresponding Javadoc for more information.
DOM InputEvent https://developer.mozilla.org/en-US/docs/Web/API/InputEvent Note: This type is not implemented in scala-js-dom
An event that has an Element as
target
. This event type has no corresponding type in JS DOM. See our ownTypedTargetEvent
trait.An event that has an HTMLElement as
target
. This event type has no corresponding type in JS DOM. See our ownTypedTargetEvent
trait.An event that has an HTMLFormElement as
target
. This event type has no corresponding type in JS DOM. See our ownTypedTargetEvent
trait.An event that has an HTMLInputElement as
target
. This event type has no corresponding type in JS DOM. See our ownTypedTargetEvent
trait.onInput
because the latter can be fired on any HTMLElement that hascontentEditable
mode enabled.onChange
andonSelect
– these could also fire on anHTMLTextAreaElement
.