Modify your greet.html page from Exercise 5.1 to similarly use a variable to simplify the displayed message.
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 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).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: