Forms and JavaScript Intro


Create a webpage that begins with an alert, " The opinions on the following page not necessarily those of the management."

When the user acknowledges the alert the page should display a form that includes a text area and three buttons.

In the head, in a script tag, declare two JavaScript variables and assign them different values. Write an onclick for the first button that assigns the value of the first variable to the value of the text area. Write an onclick for the second button that assigns the value of the second variable to the value of the text area. Give the buttons values that describe the corresponding variables. The onclick for the third button should cause an alert to appear.

You may use the skeleton provided and give it the behavior demonstrated in class, or you may create your own text or behavior.