Site hosted by Angelfire.com: Build your free website today!

JavaScript Labs

Annette Mayville
Dr. Johari
Advanced Web Communication

In the Lab, Mini Project 10

Instruction: In a Composer page answer the following questions.

1. We use new _______ to show learners additional information. In script 5.1, window

2.What is pixel2.jpg? Pixel2.jpg is the picture that will show in the second window

3. What is catWindow? The name of the variable used to open a window

4.What is newWindow? Can you change it to dogWindow?newWindow is the name of the function. Yes, you can change the name to dogWidnow as long as you change the name in all the places where the name is called for.

5. To open another window in the same page, what do you do. Explain in detail. (What changes do you make?) You would use the newWindow function to open a new window and then link it to the image you want to present.

Instruction 2: Using Composer and your book's site, perform the following tasks:

1. Using scripts 5.1, create an instructional page that opens two windows.

2. Windows carry images and need to be different.

3. You need to change the function names and the image files.

4. Use techniques for putting more than one script on a page provided by script 2.11, page 29.

Click here to see a example of a pop-up window site.