Question: Here are the directions and I will post the code I have so far. We are not allowed to use jquery. function colors(col) { switch(col)

 Here are the directions and I will post the code I

Here are the directions and I will post the code I have so far. We are not allowed to use jquery.

Red

Green

Blue

Yellow

White

(5 pts) Create a web page with five radio buttons on it, inside a fieldset. When the user clicks on a radio button then the page background will change to either red, gren, blue, yellow, or white. You should use a function to change the color to whatever color is passed to it as a parameter. There is a sentence under the fieldset that says, "The background color is now white." When the background changes,the color name in this sentence changes so that it says the new color by changing the innerHTML property

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!