University of Maryland, College of Information Studies

LBSC 690: Assignment #5 (Fall 2008)

Modify a Program: Take a took at this social networking site selector, which is a JavaScript program embedded in a Web page. Based on your age, the page redirects you to different sites after you click "Go!". If you are younger than 20, the program sends you to MySpace. If you are 20 or older, the program sends you to LinkedIn.

Modify the behavior of the program such that:

  1. If you are younger than 18, it sends you to MySpace.
  2. If you are 18 or older but younger than 30, it sends you to Facebook.
  3. If you are 30 or older, it sends you to LinkedIn.

Download the social networking site selector (right click, "Save Link As..."), modify the Javascript (as described above), and then post the resulting page on your homepage as Assignment #5. That's it!

Back to main page


This page, first created: 5 Nov 2008; last updated: Creative Commons: Attribution-Noncommercial-Share Alike 3.0 United States Valid XHTML 1.0! Valid CSS!