Modify your greet.html 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).
What will be an ideal response?
```
Greetings
Enter your name:
onclick="userName = document.getElementById('nameBox').value;
document.getElementById('outputDiv').innerHTML=
'Hello ' + userName + ', welcome to my page.
' +
'Do you mind if I call you ' + userName + '?';">
```
You might also like to view...
You see your coworker take software out of the locked cabinet and put it in his laptop bag and take it home. You suspect that he is installing it on an unauthorized computer because there are no external service calls for that technician in the morning. What should you do?
A) Nothing. B) Mention it to your supervisor. C) Confront your coworker and ask him for the software. D) Wait until you calm down, talk to the coworker the next business day, and explain your concern.
Critical Thinking QuestionsCase C-2You have been experiencing some frustrations this morning in your work with Flash and you want to remedy things once and for all. Which of the following filenames that you have created follows correct file-naming conventions for web elements? a. Sharkb. shark 1c. shark1d. [shark]
What will be an ideal response?