Not a Member Yet,
Click here to Register
How do you like the new design?

ID: 68
Viewed: 3647
Added: Jan 29, 2002
Snippet uploaded by: snippet
Written By: Don Kennedy
Demo: Sorry, no demo

User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

Many of us would like to have Scripts or html pages which could be run OFFLINE on the clients PC when they are NOT connected to the internet. This is an example of how to check using some very SIMPLE HTML and JavaScript. Example you may have Gifs which you could reference in a default home page which could now be accessed offline via a directory on the clients system. Very Many possibilites with this.

<html xmlns:MSIE="urn:default" id="htmlText" style="width: 365px; height: 240px">


MSIE:CLIENTCAPS {behavior:url(#default#clientcaps)}



 <body tabindex="-1">


<script language="JavaScript">

var str = document.all.idClCap.connectionType;

alert (str);

if (str == "lan")
downloadSpeed = 800; // good estimate for LAN - 800 KB/min
else if (str == "offline")
downloadSpeed = 100; // default to modem speed if offline
isoffline = true;
alert (document.all.idClCap.connectionType);
downloadSpeed = 120; // good estimate for 28.8kbps modem, 120 KB/min

alert (downloadSpeed);


No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.

Replying to a Comment...

Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2018 All Rights Reserved. Conditions