The Cookie Page

This page demonstrates how Web browser cookies work. If you allow it, the page will set three cookies.

  • The first will be whatever name you enter.
  • The second will be the number of times you have viewed this page.
  • The third will be the last time you visited the page.

The text on this page will change each time you reload the page, which is the same as "visiting" it again.

Page coded by Mindy McAdams, based on code from the book JavaScript for the World Wide Web, 3rd. ed., by Negrino and Smith.
>JavaScripts Index