newinjs
09-27-2003, 11:50 AM
Hi,
I am new to javascript.
I saved the following code as a file called experiment.html
<html>
<head> <title> </title> </head>
<body>
<script>
document.write(document.cookie);
</script>
</body>
</html>
when I load experiment.html in the browser (IE), I get the following output:
userID; userPIN
my question is:
how come I get this output eventhough I didn't set any cookie? where does "userID; userPIN" string come from !!!???
I am new to javascript.
I saved the following code as a file called experiment.html
<html>
<head> <title> </title> </head>
<body>
<script>
document.write(document.cookie);
</script>
</body>
</html>
when I load experiment.html in the browser (IE), I get the following output:
userID; userPIN
my question is:
how come I get this output eventhough I didn't set any cookie? where does "userID; userPIN" string come from !!!???