The readyState
property returns the loading
status of the current document.
This property returns one of four values:
document.readyState
readyState |
Yes | Yes | Yes | Yes | Yes |
The following code shows how to return the loading status of the current document.
<!DOCTYPE html>
<html>
<body>
<!--from w w w.ja va 2 s. c o m-->
Loading status:
<script>
document.write(document.readyState);
</script>
</body>
</html>
The code above is rendered as follows: