Create a Web page named magic.html that simulates the functionality of a Magic 8 Ball. Your page

Question:

Create a Web page named magic.html that simulates the functionality of a Magic 8 Ball. Your page should look similar to the one in Figure 9.10, with a text box for entering a yes-or-no question, and a clickable 8-ball image (a simple one is provided in balance3e.com/Images/8ball.gif). When the button is clicked, a function should be called to select a random response from a list of at least five possible responses (using the

RandomOneOf function) and display the response in a page division.

Test your page to make sure that it operates correctly, providing a (potentially) different answer on each click?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: