HTML DOM readyState Property

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP







<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



HTML DOM readyState Property


❮ Document Object



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:
  • uninitialized - Has not started loading yet

  • loading - Is loading

  • loaded - Has been loaded

  • interactive - Has loaded enough and the user can interact with it

  • complete - Fully loaded

DOM Version Core Level 3 Document Object


❮ Document Object