Sends an HTTP request to the server and receives a response.
Syntax
XMLHttpRequest.send( [varBody])
Parameters
varBody |
Optional.
Variant that specifies the body of the message being sent with the request. |
Return Value
No return value.
Remarks
send was introduced in Windows Internet Explorer 7.
This method is synchronous or asynchronous, depending on the value of the varAsync parameter in the open method call. If synchronous, this call does not return until the entire response is received or the protocol stack time out period expires. If asynchronous, this call returns immediately.
This optional varBody parameter may be a String, array of unsigned bytes, or an XML Document Object Model (DOM) object. For additional information, see send Method (IXMLHTTPRequest).
Standards Information
This method is defined in
The XMLHttpRequest Object (W3C Working Draft) .
Applies To
See Also
open, setRequestHeader