Textarea.form

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

							textarea.form

Description

The form property of an instance of a Textarea 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 area is located.

Example

Listing 7.510 has a text area 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 text area.

Listing 7.510 Accessing a Form via the form Property of an Instance of a Textarea 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.