<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>a.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="./styles.css">--> </head>
<body>
<script type="text/javascript">
CookieEnable();
function CookieEnable()
{
var result=false;
alert(navigator.cookieEnabled);
if(navigator.cookieEnabled)
return true;
document.cookie="abc";
var cookieSet=document.cookie;
if(cookieSet.indexOf("abc")>-1)
result=true;
document.cookie="";
return result;
}
if(!CookieEnable())
alert("对不起,您的浏览器的Cookie功能被禁用,请开启");
else
alert("您的浏览器的Cookie功能已开启!"); </script>
</body>
</html>
用以上代码测试的就是IE一直是true...NND
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货