DOMRequest.readyState

This property is a string that indicates whether or not a DOMRequest operation has finished running.

Note: This feature is available in Web Workers.

Syntax

JavaScript
var state = request.readyState;

Where request is a DOMRequest object.

This is a read-only property.

Return value

The returned value is a JavaScript string whose value is "done" if the operation has completed or "pending" if it has not.

Specifications

Not part of any current specification.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? 13.0 (13.0) ? ? ?
Available in workers ? 41.0 (41.0) ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? 13.0 (13.0) ? ? ?
Available in workers ? ? 41.0 (41.0) ? ? ?

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/domrequest/readystate

API DOM Property Reference