X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

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