Connection type? Is it a common usage? In ie-proprietary agent, you have clientcaps behavior which exposes a connectionType. If that's not what you need, cannot help.
[tt]
<html>
<head>
<script language="javascript">
function doit() {
var oelem=document.getElementById("x");
oelem.style.behavior="url(#default#clientCaps)";
oelem.innerHTML+=oelem.connectionType;
}
window.onload=doit;
</script>
</head>
<body>
<span id="x">ConnectionType: </span>
</body>
</html>
[/tt]
Maybe you refer to the speed of the connection to the internet? As in modem, Cable, ADSL etc?
You can kind-of do this using javascript, but it's not reliable at all. Basically you would request a large image (say) of a known number of bytes. Then time how long it takes to load and work out the transfer speed. That doesn't take into consideration other people also using your connection (if shared).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.