CMPS 335 Advanced Web Publishing
JavaScript Programming
Assignment 7, Spring 2002
Popup Window and Calendar
Primary Objectives of the Assignment
- Window Object
- Date Object
- Opening and Closing a Window
- Displaying a Calendar
Create an HTML document that contains the links [Show Calendar Window]
and [Close window]. When the user clicks the [Show Date & calendar]
link, a user-defined JavaScript function named openWindow() is executed.
The function opens a new window and loads a Web page into the new
window to display the current date and a monthly calendar. The
monthly calendar should be similar to the one shown below:
Some of the dates on the calendar are underlined. The undelines
are links. Clicking on an underlined date makes the events for that
date show up in the text box next to the calendar. When the user
clicks the [Close Calendar] link or the Close button (X) on the Title bar,
the window should disappear.
Click [Show
Calendar Window] for an example of assignment 7
Click [Close window]
or the Close button (X) to close the window
Return to CMPS 335 Home Page
Return to Web Site Home Page