HTML and CSS Reference
In-Depth Information
Table 11.5 Properties of the forms Object
Property
What It Describes
action
The URL to the server (where the form is sent).
button
An object representing a generic button.
checkbox
An object representing a checkbox field.
elements
An array containing an element for each form field (radio button,
checkbox, button, etc.) defined within a form.
encoding
MIME type ( application/x-www-urlencoded or multipart/form-data ).
FileUpload
An object representing a file-upload form field.
hidden
An object representing a hidden field in a form.
length
The number of fields defined within the form.
method
get or post (how the form is sent to the server).
name
The name of the form.
password
An object representing a password field.
radio
An object representing a radio button field.
reset
An object representing a reset button.
select
An object representing a selection list.
submit
An object representing a submit button.
target
References the HTML target tag attribute, the name of the frame
where the user's response to the submitted form will be displayed.
text
An object representing a text field.
textarea
An object representing a text area field.
Table 11.6 Methods of the forms Object
Method
What It Does
reset()
Resets the form fields to their default values.
submit()
Submits a form.
 
Search WWH ::




Custom Search