JavaScript

Monday April 7, 2025
updated: April 10, 2002

 
Home
Getting Started
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Resources
Credits

 

 


Assignment 6

Create a JavaScript that will do the following:

1. Upon entering the web page A6indexName.htm the user is asked for their Name and for a password. (Use the prompt box)

2. Check the input of the user. If the input equals java an alert box displays the text "Hello Name, welcome to my site" and loads a new page A6Name. If the input is not equal to Java then the alert box displays a the test "Sorry, Name, you do not have access to the site"

3. The new page will do the following:

The page will ask the user for specifications of a new window which will be launched when the user clicks submit.

When the user clicks the launch button, a script will check to be sure all the field have been entered, if not a alert will be displayed requesting all fields be completed.

The specifications include the dimensions (height and width), back ground color (give 4 choices), and the location of the pop up window.

The text window should read " Name, this window was made just for you!".


© 2002 Tracy Johnson