Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please,don’t copy from other answer. The problem is not the same. I have to repo

ID: 3753323 • Letter: P

Question

Please,don’t copy from other answer. The problem is not the same. I have to repost this again because of incorrect answer. Please, show me the output screen also Modify the radio_click.html example to have five buttons, labeled red, blue, green, yellow, and orange. The event handler for each button must change the font color to be the chosen favorite color. The event handler must be implemented as a function whose name must be assigned to the onclick attribute of the radio button elements. The chosen color must be sent to the event handler as a parameter. YourName A5 P2 ColorClick.html I want the output like this. cl file ///Zyc | ·-). file:///Z/CL.. C file//2/CL.. | e. -) Choose your favorite color Choose your favorite color Choose your favorite color O Red 0 Blue O Green O Yellow 0 Orange Red 0 Blue 0 Green 0 Yellow 0 Orange Red Blue Green 0 Yellow O Orange

Explanation / Answer

<!DOCTYPE html>
<html>
<body>

<h2>Choose your favourite color</h2>
<form>
<input type="radio" value="red" name="colors">Red</input>
<br></br>

<input type="radio" value="blue" name="colors">Blue</input>

</br></br>

<input type="radio" value="green" name="colors">Green</input>
</br></br>

<input type="radio" value="yellow" name="colors">Yellow</input>

</br></br>

<input type="radio" value="orange" name="colors">Orange</input>
</form>
<script>
function changeColor(obj) {

document.body.style.color = obj.value;
  
}
</script>

</body>
</html>