HTML DOM Document readyState Property

Definition and usage

readyState The property returns the (loading) state of the current document.

readyState The property is read-only.

Example

Returns the loading state of the document:

document.readyState;

Try it yourself

Syntax

document.readyState

Return value

Type Description
String

The current state of the document:

  • uninitialized - Not yet started loading
  • loading - Loading
  • loaded - Loaded
  • interactive - Loaded enough to interact with
  • complete - Fully loaded

Browser support

document.readyState It is a feature of DOM Level 3 (2004).

All browsers support it:

Chrome IE Edge Firefox Safari Opera
Chrome IE Edge Firefox Safari Opera
Support 9-11 Support Support Support Support