• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Cookies > Saving Cookies

Saving Cookies

Setting cookies is really easy as Example 16-2 shows.

Example 16-2. Setting a cookie

<html>
<head>
<title>cookies</title>

<script language="JavaScript">
document.cookie="test=my_test"
</script>

</head>
<body>
set the cookie
</body>
</html>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint