Sets or retrieves how to send the form data to the server.
dhtml语法
HTML | <FORM METHOD
= sMethod... >
|
---|
Scripting | FORM.method [ = sMethod ] |
---|
DHTML可能的值
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.
是否符合公共标准
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
更多语法参考
action