Select

JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax

Core client-side JavaScript object.

Description

The Select object is one of the core JavaScript objects. Instances are created by the browser when it encounters an HTML <select> tag. In the JavaScript object hierarchy, the Select object is located at window.document.Form.Select. Table 7.43 lists the properties, methods, and event handlers used by the Select object.

Table 7.43. Event Handlers, Methods, and Properties Used by the Select Object
Type Item Description
Event Handlers onBlur Executes code when the select box loses the focus.
  onChange Executes code when the select box loses the focus and has had its value modified.
  onFocus Executes code when the select box ...

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.