
| JavaScript provides the document.cookie property --
what you put in it isn't necessarily what you will get out of it. The
little bit of script below will demonstrate this:
<SCRIPT> document.cookie = "name=Frank"; document.cookie = "frames=parent"; document.cookie = "java=cool"; alert(document.cookie); </SCRIPT> This script will set three cookies (users can see each being set if cookie warnings are turned on in the browser), then pop up an alert box that will contain the string: "name=Frank; frames=parent; java=cool" -- the three cookies we've set. |