Select.form
JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax
select.form
Description
The form property of an instance of a Select object holds all the data of the form in which the select box is contained. This allows a developer to obtain specific information about the form in which the select box is located.
Example
Listing 7.466 has a select box and a button. When the button is clicked, three properties of the form as a whole are displayed. These properties were referenced through the form property of the select box.
Listing 7.466 Accessing a Form Via the form Property of an Instance of a Select Object
<html> <head> <script language="JavaScript"> <!-- Hide // Define the openWin function called by pressing the button function ... |
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.