Instance Method

XMLHttpRequest

Creates a new XMLHttpRequest.

Declaration

new XMLHttpRequest();

Return Value

A new instance of an XMLHttpRequest.

Discussion

You create a new XMLHttpRequest instance to send and receive data between your app and a server.

See Also

Initializing and Sending a Request

abort

Cancels any network activity.

open

Sets the method, URL, and synchronous flag for a request.

send

Sends the request.

timeout

The amount of time, in milliseconds, before causing a request to time out.