JavaScript Tip of the Week for July 1st, 1996: Using a Browser's Cookie

JavaScript Tip of the Week for July 1st, 1996: Using a Browser's Cookie

You may not be familiar with the cookie: it is a file in Netscape and MIE that allows data from pages to be saved for later use. All of this data is saved in a file called cookie.txt. Using cookies you can customize a page to remember someone's name, how many times he/she has visited a page, or even display custom stock quotes. Cookies can be done using a server or using JavaScript, and this week's tip will allow you to use the former. Some of this code may be a little complicated for the beginner, but try to focus on what's be done with the cookie, and not on the large functions themselves.