【发布时间】:2013-11-08 08:33:07
【问题描述】:
我正在尝试使用 javascript 检查浏览器是否有互联网连接,但我在 IE 5.5 上遇到了一些问题
<script>
function checkConnection(){
if(navigator.onLine === false){
//document.execCommand("Stop");
alert("No internet connection.");
document.execCommand("Stop");
}
</script>
和:
<input type="submit" value="GO" name="whereTo" onclick="checkConnection();" />
似乎 IE 5.5 没有 navigator.onLine 属性,如何检查 IE 5.5 的连接?
【问题讨论】:
-
我猜你不应该想处理这些过时的东西......
-
IE 5.5?那是13年前发布的!你真的需要支持吗?
-
Internet Explorer 5.5 时代还没有发明互联网
-
IE5.5 就像一扇敞开的大门,让病毒和蠕虫进入...
-
告诉他们买一部新手机?
标签: javascript internet-explorer navigator internet-explorer-5