docs.rodeo

MDN Web Docs mirror

XMLHttpRequest: open() method

{{APIRef("XMLHttpRequest API")}}  {{AvailableInWorkers("window_and_worker_except_service")}} 

The {{domxref("XMLHttpRequest")}}  method open() initializes a newly-created request, or re-initializes an existing one.

[!NOTE] Calling this method for an already active request (one for which open() has already been called) is the equivalent of calling {{domxref("XMLHttpRequest.abort", "abort()")}} .

Syntax

open(method, url)
open(method, url, async)
open(method, url, async, user)
open(method, url, async, user, password)

Parameters

Return value

None ({{jsxref("undefined")}} ).

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN