Online or Offline
General
By checking the documents current location a script can determine if you are on or offline because the document's location will be different when online. This can be useful for an Intranet, redirecting the user to a local file if they are offline.
Notes
- Created by: Mr J
- Web Site: http://www.huntingground.net/
- Posted: May 11, 2007
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: onlineOffline.js
Head
Paste this code into the HEAD section of your HTML document.


Leave a Response
(0 comments)