<script>
var the = new ActiveXObject("Microsoft.XMLHTTP");
var theTemp = "?temp=" + Math.random( ) ;
var theUrl = "http://www.sina.com.cn/"
//var theUrl = "http://www.sdfsd232424234234.com.cn/"
the.abort() ;
the.open( "GET", theUrl + theTemp , true );
the.onreadystatechange = onTest ;
the.send();
function onTest()
{
if( the.readyState == 4 )
{
if( the.status == 200 )
{
alert( "ping OK!" )
}
else
{
alert( "ping err!" )
}
}
}
</script>