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.

Showing Your Cookies

See it run: Showing Your Cookies

Script 10.5

This JavaScript steps through and displays all of the cookies on your machine that have been set by a particular server.