16
rated 0 times
[
22]
[
6]
/ answers: 1 / hits: 84281
/ 13 Years ago, sat, november 12, 2011, 12:00:00
I have a very simple line of code that set and read a cookie. I kept getting empty value for my cookie and have no understanding why. I have cookie enabled and know that cookies work on the browser.
<HTML>
<HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
<SCRIPT type=text/javascript>
document.cookie = ding=dong;
</SCRIPT>
<script type=text/javascript>
alert(document.cookie);
</script>
</BODY>
</HTML>
More From » google-chrome