Text
JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax
Core client-side JavaScript object.
Description
The Text object is one of the core JavaScript objects. Instances are created by the browser when it encounters an HTML <input> tag with the TYPE attribute set to text.In the JavaScript object hierarchy, the Text object is located at window.document. Form.Text. Table 7.45 lists the properties, methods, and events used by the Text object.
Type | Item | Description |
---|---|---|
Event Handlers | onBlur | Executes code when the text box loses the focus. |
onChange | Executes code when the text box loses the focus and has had its value modified. | |
onFocus | Executes code when the ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.