Text.form

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

							text.form

Description

The form property of an instance of a Text object holds all the data of the form in which the text box is contained. This allows a developer to obtain specific information about the form in which the text box is located.

Example

Listing 7.496 has a text box and a button. When the button is clicked, three properties of the form as a whole are displayed. These properties were referenced though the form property of the text box.

Listing 7.496 Accessing a Form via the form Property of an Instance of a Text Object
 <html> <head> <script language="JavaScript"> <!-- Hide // Define the openWin function called by pressing the button function openWin(){ // ...

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.