method Property
Returns or sets a String that represents how to send the data in a form to the server.
expression.method
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The String value for the method property can be one of the following:
Value | Description |
---|---|
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. |
Example
The following example inserts a FORM element into the active document and sets the method property.
Sub AddForm()
Dim objForm As FPHTMLFormElement
Dim objTextBox As FPHTMLInputTextElement
Dim intCounter As Integer
Dim strForm As String
strForm = "<form id=""NewCustomer""><input type=""text"" " & _
"id=""FavoriteIceCream""><input type=""submit""></form>"
ActiveDocument.body.insertAdjacentHTML where:="afterbegin", _
HTML:=strForm
Set objForm = ActiveDocument.forms("NewCustomer")
objForm.method = "post"
End Sub