Question: Modify your greet.html page from Exercise 5.1 to similarly use a variable to simplify the displayed message. That is, the first JavaScript statement associated with

Modify your greet.html page from Exercise 5.1 to similarly use a variable to simplify the displayed message. That is, the first JavaScript statement associated with the button's ONCLICK attribute should be an assignment that stores the contents of nameBox in a variable. Then, that variable should be integrated into the message being displayed (as opposed to the full getElementById expression).

Step by Step Solution

3.35 Rating (155 Votes )

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

Document Format (1 attachment)

Word file Icon

1409-C-S-O-S(955).docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!