<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>jsObject.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./my1.css">
<script type="text/javascript">
//通过借用浏览器是否具有这些属性来判断
if(window.XMLHttpRequest){
if(!window.ActiveXObject){
alert('Mozilla, Sfari');
}else{
alert('IE');
}
}else{
alert('IE6');
}
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<title>jsObject.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./my1.css">
<script type="text/javascript">
//通过借用浏览器是否具有这些属性来判断
if(window.XMLHttpRequest){
if(!window.ActiveXObject){
alert('Mozilla, Sfari');
}else{
alert('IE');
}
}else{
alert('IE6');
}
</script>
</head>
<body>
</body>
</html>