Baking Cookies-Step 1

To see what your web page should look like when you've completed step 1, Click here.

Log in and move into your public_html directory:
cd public_html
Use pico to create the following file. For help with pico, Click here
pico cookie.html



<HTML>
<HEAD>
        <TITLE>Cookie Monster!</TITLE>
        <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

                <!-- Hide script from older browsers
                alert("This page uses cookies!")
                //end hiding script -->
        

</SCRIPT>      
</HEAD>

<BODY BGCOLOR="WHITE">
<center><h2>A Simple Cookie created with JavaScript</h2></center>
<P>
<B>Privacy Notice:</B>  Information entered on this page will
be stored in a cookie that will persist for 6 months. 
This is a class assignment for IT 108.
<P><P>
This page &#169 2002 by Your Name
</BODY>
</HTML>

You'll need to make this page readable by typing:
chmod a+r cookie.html

Launch a web browser and check your web page. This will be the url:
http://mason.gmu.edu/~yourloginname/cookie.html

If there are errors, edit the file with pico and make corrections. Can you see what each line in the file is doing?

Click here to return to the cookie lab
Click here to return to the IT 108 main page


Copyright © 1999-2002 All Rights Reserved