/

HTML / CSS / JavaScript Tutorial

JavaScript DOM own property: readyState

[this page | pdf | back links]

The readyState property of the JavaScript DOM returns the load status of the document.

 

EXAMPLE:


HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
<a id="x1" href="http://www.nematrian.com/Introduction.aspx">Website Introduction</a><br>
<a id="x2" href="http://www.nematrian.com/HTMLCSSJSTutorial.aspx">HTML/CSS/JavaScript Tutorial</a><br>
<a id="x3">Link without an href attribute set</a><br><br>
<span id="x0"></span>

<script>
var n0 = document.getElementById("x0");
n0.innerHTML = "Document properties include:<br>"
  + "baseURI = " + document.baseURI + "<br>"
  + "body = " + document.body + "<br>"
  + "cookie = " + document.cookie + "<br>"
  + "docType = " + document.cookie + "<br>"
  + "documentElement = " + document.documentElement + "<br>"
  + "documentMode = " + document.documentMode + "<br>"
  + "domain = " + document.domain + "<br>"
  + "domConfig = " + document.domCOnfig + "<br>"
  + "embeds = " + document.embeds + "<br>"
  + "forms = " + document.forms + "<br>"
  + "head = " + document.head + "<br>"
  + "images = " + document.images + "<br>"
  + "implementation = " + document.implementation + "<br>"
  + "inputEncoding = " + document.inputEncoding + "<br>"
  + "lastModified = " + document.lastModified + "<br>"
  + "readyState = " + document.readyState + "<br>"
  + "referrer = " + document.referrer + "<br>"
  + "URL = " + document.URL + "<br>"

</script>

</body>
</html>


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile