www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 method Property
METHOD Attribute | method Property

Sets or retrieves how to send the form data to the server.

Syntax

HTML<FORM METHOD = sMethod... >
Scripting[ sMethod = ] FORM.method

Possible Values

sMethodString that specifies or receives one of the following values.
getAppend the arguments to the action URL and open it as if it were an anchor.
postSend 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 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

FORM

See Also

action
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG