function checkConnect() { var xhr = new ActiveXObject("Msxml2.XMLHTTP"); xhr.open("GET", "http://www.google.co.jp/", false); isConnect = true; try { xhr.send(); } catch(e){ isConnect = false; } return isConnect; }
function checkConnect() { var xhr = new ActiveXObject("Msxml2.XMLHTTP"); xhr.open("GET", "http://www.google.co.jp/", false); isConnect = true; try { xhr.send(); } catch(e){ isConnect = false; } return isConnect; }