Provides functionality for elements that accept text as input.
Sets or gets the maximum number of characters that can be entered.
maxLength property of an input element to a positive number restricts user input, by manual entry or pasting, to text that does not exceed the
However, it does not limit your ability to change the element's value to one that exceeds
To remove the maximum length restriction that has been set on the input element, set
maxLength property returns the element's current
The number of characters is calculated by Unicode code points.
Get an element's maximum length
Set an element's maximum length
Remove an element's maximum length restriction
Sets or gets the element's placeholder text.
Placeholder text is typically used to provide a hint to the user of what to enter into a input element that accepts text. When the user begins to enter text, the placeholder text disappears.
Get an element's placeholder text
Set an element's placeholder text
Adds an event handler that runs when the cursor is inside the input element and a key is pressed.
A text input receives a
keyPress event when a user presses a key on the keyboard while the cursor is inside the input element.
||The name of the function or the function expression to run when a key is pressed.|
||KeyboardEvent||The keyboard event that occurred.|
||$w||A selector function. The $w function enables event handlers to work with elements in repeaters and in the global scope.|
|Element||The element on which the event is now registered.|
Get the key that was pressed
Get all of the keyboard event's properties