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.

Displaying "New to You" Messages

See it run: Displaying "New to You" Messages

Script 10.9

The CSS used in the HTML of this page applies the next script's results to the page.

Script 10.10

This JavaScript can help you personalize your site by alerting the user to new content.