This first example illustrates a simple use of cookies. The script uses cookies to track and display the number of times a user has visited the page (be sure to view the example more than once).
This example explains and illustrates my implementation of general cookie functions. Feel free to copy the functions and use them on your pages.
See the example or view source.
This next example explains the JavaScript behind this example page. The link below will allow you to change the formatting of the page for the next visit. You can also see the explanation as well.