3. Create a function called changeColor() that will be called when the user presses one of two buttons. The first button will contain the text "Press here for a yellow background". The second button will contain the text "Press here for a light green background". The function will take one parameter, a color. Its function is to change the background color of the current document; for example, bgColor="yellow".

Complete chapter 7 exercise 3. Save this page as chapt7ex3.html in your week 4 folder.

Back to Assignment Web Page.

Valid XHTML 1.0!

Valid CSS!

W3C XHTML validation page

W3C CSS Validation Page