THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM readyState Property

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