Chapter 10: JavaScript and Cookies

Return to Chapter 10

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Handling Multiple Cookies

See it run: Handling Multiple Cookies

Script 10.8

This JavaScript uses an array to deal with multiple cookies in a single script.