Availability
Synopsis
form.submit( )Description
The submit( ) method
submits the specified form, almost as if a
Submit button had been pressed by
the user. The form is submitted as specified by the
action, method, and
encoding properties of
form (or the action,
method, and enctype attributes
of the <form> tag), and the results are
displayed in the window or frame specified by the
target property or the target
attribute.
The one important difference between the submit( )
method and form submission by the user is that the onsubmit(
) event handler is not invoked when submit(
) is called. If you use onsubmit( ) to
perform input validation, for example, you'll have to do that
validation explicitly before calling submit( ).
Usage
It is more common to use a Submit
button that allows the user to submit the form than to call the
submit( ) method yourself.
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.