Question: Revise the document of Exercise 5.1 to use the DOM 2 event model. Data from exercise 5.1 Modify the radio_click.html example to have five buttons,

Revise the document of Exercise 5.1 to use the DOM 2 event model.


Data from exercise 5.1

Modify the radio_click.html example to have five buttons, labeled red, blue, green, yellow, and orange. The event handlers for these buttons must produce messages stating 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.

Step by Step Solution

3.21 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

editble de Selet whih lr yu wnt t ... View full answer

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

Document Format (2 attachments)

PDF file Icon

1818_61d57f25e8477_823631.pdf

180 KBs PDF File

Word file Icon

1818_61d57f25e8477_823631.docx

120 KBs Word File

Students Have Also Explored These Related Programming World Wide Questions!