<html><script type="text/javascript">if(window.clientInformation.cookieEnabled){ alert('cookie在启用状态'); }else{ alert('cookie在禁用状态'); }</script></html>
上面是一段查看cookie是否启用的js,能正常在IE中运行,但是放到火狐里就不行了,请问如何判断火狐浏览器的cookie启用状态呢?谢谢 !
<script language="javascript">if(navigator.cookieEnabled){alert("Cookies is Enabled");}else{alert("Cookies is Disabled");}</script>