Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the value of the timeout property.
![]() |
Syntax
HRESULT value = object.put_timeout( v);HRESULT value = object.get_timeout(* p);
Property values
Type: long
the number of milliseconds the browser waits for a server response.
Remarks
Note The timeout property has a default of 0.
The IHTMLXDomainRequest::responseText will be null, if the timeout period expires.
You should set the timeout to a value that is slightly longer than the response time you expect for the request.
Examples
Setting the timeout property.
var xdr;
xdr = new XDomainRequest();
xdr.timeout = 10000;
See also
Reference