 |
Assignments
Assignment #1
Due Date: September 12, 2002
Value: 10 points total
Submission:
Send the instructor an e-mail for each part of the assignment with the attached HTML containing the HTML/JavaScript to complete the assignment. gjones@coefs.coe.unt.edu.
Part 1 (5 pts)
Using JavaScript within HTML write an html/script that incorporates the following elements:
- uses the JS document.write
- uses the JS alert
- uses a variable
- uses a for statement
- uses the JS confirm
Test Data: None
Output: Student Defined
Expected Code: Student must use one or more of the above items in the submitted code.
Note: The above were all shown during class with the exception of confirm which can be looked up in the JS sourcebook.
Part 2 (5 pts)
Using JavaScript within HTML write an html/script that implements the following pseudo code.
- Upon viewing the HTML page, display the course description for 5100
- At the bottom/after the course description html, provide a hyper-link to the schedule page on courseweb.unt.edu under 5100
- When the user clicks on the schedule hyper-link, the user is presented with a confirm dialog box asking if they wish to go to the new page or not.
- If the user presses Okay, then the page changes to the listed URL for the schedule
- If the user presses Cancel, the page does not change
Test Data: None
Output: HTML as described, confirm dialog displayed on click of HREF for schedule, and page changes to the schedule page on confirm OK
Expected Code: Student can use whatever JS code they wish to complete the assignment.
Note: An example for this half of the assignment might be found on the current 5100 course pages. Hint: Remember to 'view source' when looking at a web page.
Copyright 2002, Dr. James G. Jones
|