X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM readyState Property

Document Object Reference 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

document.readyState


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

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 Reference Document Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook