Hi,
I want to simply detect whether the browser has cookies enabled, so I do as a test:
<script language='Javascript'>
<!--
if(document.cookie) {
document.write("yes to cookies"
}
else
document.write("no to cookies"
-->
</script>
With IE5.5 this returns "no to cookies" all the time, no matter whether I enable cookies or not.
Any idea what's going on? I also tried setting the cookie to something, like (document.cookie=""
I want to simply detect whether the browser has cookies enabled, so I do as a test:
<script language='Javascript'>
<!--
if(document.cookie) {
document.write("yes to cookies"
}
else
document.write("no to cookies"
-->
</script>
With IE5.5 this returns "no to cookies" all the time, no matter whether I enable cookies or not.
Any idea what's going on? I also tried setting the cookie to something, like (document.cookie=""