Baking Your First Cookie
Reading a Cookie
Showing Your Cookies
Using Cookies as Counters
Deleting Cookies
Handling Multiple Cookies
Displaying "New to You" Messages
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.
See it run: Baking Your First Cookie
This HTML creates a simple form. We can then store the user's entry in the form in a cookie.
This JavaScript sets a browser cookie.