Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
timeout

timeout property

Gets or sets the value of the timeout property.

Internet Explorer 8

 

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
IHTMLXDomainRequest
XDomainRequest

 

 

Community Additions

ADD
Show:
© 2015 Microsoft