CS 101 - Intro to Computing, Spring 2008

Lab 4

JavaScript

For this assignment, you will write some basic JavaScript commands to add some additional information to a web page. However, we should first review the basics of the <script> tag.

The JavaScript code can add dynamic information to a web page that static HTML code cannot. The use of the JavaScript statement document.write() is very useful for this.

The document object in JavaScript allows a number of useful methods and properties. Check out http://www.w3schools.com/htmldom/dom_obj_document.asp for a discussion of more items.

The Date object allows JavaScript code to retrieve specific information about the date stored in the Date object. See http://www.w3schools.com/js/js_obj_date.asp for addition information about the Date object.

Lab Assignment 4

Due: Tuesday 2/12/2008 by 11:59 pm

For this lab assignment, complete the following:

  1. Create an HTML file that lists:

  2. This web page must be placed in your web space (in your WWW directory) on your CS account.

  3. You are also required to put a link on your CS Home Page to the page you created for this lab.

    Verify that your link and the file are viewable via a web browser from the URL of:

         http://www.cs.uic.edu/~USERID
    
    where USERID is your CS account login name.
    
    You can check this out via the link to your home page on the CS 101 Student List page. Once you are at your home page, follow the link you added to your home page for this lab assignment.

  4. You are also to submit this web page electronically by using the UNIX turnin command.

    To use the UNIX turnin command to electronically hand-in your html file using the project name of lab4. To submit the file in <filename> for lab4, the turnin command is entered as:

         turnin -c cs101 -p lab4 <filename>
    
    Thus if your file has the name of lab4.html, the command would be:
         turnin -c cs101 -p lab4 lab4.html
    
    To verify what you submitted using the turnin command type:
         turnin -c cs101 -p lab4 -v
    

Grading Criteria