METHOD Attribute | method Property | Internet Development Index |
Sets or retrieves how to send the form data to the server.
Syntax
HTML <FORM METHOD = sMethod... > Scripting FORM.method [ = sMethod ]
Possible Values
sMethod String that specifies or receives one of the following values.
get Append the arguments to the action URL and open it as if it were an anchor. post Send the data through an HTTP post transaction. The property is read/write. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.
Remarks
When using the post method, there is no theoretical limit to the amount of data that can be sent to the HTTP server. The amount of data may be constrained by the physical limits of the client computer.
When using the get method to send data to an HTTP server, the amount of data that can be sent is limited by the maximum length of a URL. In this case the URL cannot be longer than 2048 bytes.
Standards Information
This property is defined in HTML 3.2 and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
FORM
See Also
action