Detecting if a site is online.
I want to use this for two things, one is to detect if a particular URL is online and the other is to detect if the user has an internet connection by detecting if the user can access a site that very rarely goes offline.
Basically, I want to check if the user is able to access a website like google.com and if not alert("Offline"); and if so alert("Online");
Any help would be very much appreciated.
P.S: I would not like to use XMLHttp for this.
Last edited by Chris252; 05-14-2009 at 08:38 PM.
Reason: Add the P.S
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread