Baking Cookies-Step 3

Almost done! To see what the final product will look like, click here.

Finally you will add this code to the script in the body after the form:


<SCRIPT LANGUAGE="JAVASCRIPT"> if(document.cookie!=""){ document.write("Hello "+document.cookie.split("=")[1]) document.write(". This cookie expires "+expireDate.toGMTString()) } </SCRIPT>

Test your final page and let your TA or Instructor know if you have questions. Note that the cookies are only saved to the disk when you exit the browser, so your name will not appear until you hit reload/refresh. Note also that it will display the last name entered and saved.

To Turn In:

Email the URL of your cookie to your TA's grading account:

Labs 201-203 mail to: it10801@mason.gmu.edu (not it10801@gmu.edu That doesn't work!)
Labs 204-206 mail to: it10802@mason.gmu.edu (see note above)
Lab 207 see your instructor for instructions.


Click here to return to the cookie lab
Click here to return to the IT 108 main page
Copyright © 1999-2002 All Rights Reserved