Document readyState Property
Document Object
Definition and Usage
The readyState property returns the (loading) status of the current document.
This property returns one of four values:
- uninitialized - Has not started loading yet
- loading - Is loading
- interactive - Has loaded enough and the user can interact with it
- complete - Fully loaded
Syntax
Browser Support

The readyState property is supported in all major browsers.
Example
Example
Return the loading status of the current document:
<html>
<body>
Loading status:
<script>
document.write(document.readyState);
</script>
</body>
</html>
Try it yourself »
Document Object
Thank You For Helping Us!
Your message has been sent to W3Schools.
Close [X]