<!DOCTYPE html>
<html lang="en-US">
<body>
<p>Click on the button to check this document status</p>
<button onclick="myFunction()">Click Me</button>
<p id="point"></p>
<script>
var x = document.getElementById("point");
var txt ="Document Status : ";
x.innerHTML = txt+" "+document.readyState;
function myFunction(){
x.innerHTML = txt+" "+document.readyState;
}
</script> </body>
</html>