Lab 4 - event handlers

Lab 4 objective

In this assignment you will use event handlers and functions.

You may wish to look at the samples in Unit 10 - Events and Unit 12 - Event handlers.

Buttons

Build a page named lab4.html

Put a link in your index page to your new page. Also, put a link from this page back to your index page.

Put three or more buttons in the page. Each button will have identifying text on the button. These buttons will always be visable in the page.

When a button is clicked, a corresponding image will be displayed. Intially no image is displayed. After one button has been pushed, exactly one image will be visable in the page.

If you use images from the Internet, make sure you have permission, or that you are abiding by fair use.

When the same button is clicked again, while its image is still visable, nothing will happen. When the user clicks a different button, the corresponding image will appear.

Apperance

Use headings and text, as needed in the page. Use colors and the arrangement of the page to make the page look good.