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

Core client-side JavaScript object.


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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.