HTML DOM readyState property
Document Object
Definition and Usage
The readyState property returns the status of the current document (loading...).
This property returns the following values:
- uninitialized - Loading has not started
- loading - Loading
- interactive - Loaded, the document can start interacting with the user
- complete - Loading complete
Syntax
document.readyState
Browser support





All major browsers support the readyState property
Example
Example
Return the loading status of the current document:
Loading status:
Try it »
Document Object