Submit.form

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

							submit.form

Description

The form property of an instance of the Submit object provides access to all the data of the form in which the submit button is located.

Example

Listing 7.483 has a text box and a submit 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 submit button.

Listing 7.483 Accessing a Form Via the form Property of an Instance of a Submit Object
 <html> <head> <script language="JavaScript"> <!-- Hide // Define the openWin function called by pressing the button function openWin(){ // Place the reference to the form property of submit button // in a ...

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.