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.

instance

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 started loading
  • loading - loading
  • loaded - loaded
  • interactive - loaded enough to interact with
  • complete - fully loaded

browser support

document.readyState 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