JavaScript : Smart Sites and Cute Cookies
Dr Benton
Setting the Scene
Identify visitors to your site and the number of visits. This is just one example of what cookies can do. We will implement
this feature right now in this workshop.
Visitor identification and the display of an appropriate message will be carried out by means of a form. Before we get down
to the technical details and conjure up more culinary delights, here is the source of the page which we will start from.
<HTML>
<HEAD>
<TITLE>Master cookies!</TITLE>
</HEAD>
<BODY>
<FORM>
Enter your name:
<INPUT TYPE="text" NAME="nom" SIZE="15" VALUE="">
<INPUT TYPE="text" NAME="sortie" SIZE=50 VALUE="">
</FORM>
</BODY>
</HTML>