HTML DOM onLine Property
Complete Navigator Object Reference
Definition and Usage
The onLine property returns a Boolean value that specifies whether the system
is in offline mode.
Note: In IE 4+ the user can choose to work offline by selecting
File/Work Offline in the browser. When Work Offline is selected, the system
enters an offline state, and content is read from the cache.
Syntax
Example
<html>
<body>
<script type="text/javascript">
document.write("<p>OnLine: ")
document.write(navigator.onLine + "</p>")
</script>
</body>
</html>
|
Try-It-Yourself Demos
Detect the visitor's browser and browser version
More details about the visitor's browser
All details about the visitor's browser
Alert user, depending on browser
Complete Navigator Object Reference
|