HTML DOM readyState Property
Example
Get the loading status of the current document:
var x = document.readyState;
The result of x could be:
complete
Try it yourself »
Definition and Usage
The readyState property returns the (loading) status of the current document.
Note: This property is read-only.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
readyState | Yes | Yes | 3.6 | Yes | Yes |
Syntax
document.readyState
Technical Details
Return Value: | A String, representing the status of the current document. One of five values:
|
---|---|
DOM Version | Core Level 3 Document Object |
Document Object