HTML Reference Guide
FORM
<FORM
ACTION=url
METHOD=GET|POST
onSubmit=event
TARGET=window>
</FORM>
Denotes a form. The end-tag is required.
- ACTION=url
- Specifies the address to be used to carry out the action of the form. If none is specified, the base URL of the document is used.
- METHOD=GET|POST
- Indicates how the form data should be sent to the server. The default is GET.
| GET |
Appends the arguments to the action URL and opens it as if it were an anchor. |
| POST |
Sends the data via an HTTP post transaction. |
- onSubmit=event
- References an event, possibly a script statement such as a VBScript functional call, when the form is sent to the server.
- TARGET=window
- Specifies to load the results of the form submission into the targeted window. The window can be one of these values:
| window |
Specifies to load the link into the targeted window. The window must begin with an alphanumeric character to be valid, except for the following four target windows: |
| blank |
Load the link into a new blank window. This window is not named. |
| parent |
Load the link into the immediate parent of the document the link is in. |
| self |
Load the link into the same window the link was clicked in. |
| top |
Load the link into the full body of the window. |
Example
<FORM TARGET="viewer" ACTION="http://www.sample.com/bin/search">
...
</FORM>
|