Modify your tip.html page so that it similarly uses a function in the HEAD. When the button is clicked, the function should be called to perform the tip calculation and display the result in the page division.

What will be an ideal response?


```







Tip Calculator




Tip Calculator



Enter the check amount: $


Enter the tip percentage: %


onclick="GetTip();">





```

Computer Science & Information Technology

You might also like to view...

The Coordinates program listens for a mouse pressed event to draw a dot. How would the program behave differently if it listened for a mouse released event instead? A mouse clicked event?

What will be an ideal response?

Computer Science & Information Technology

What is the purpose of the function prototype?

A. Declares variables that need to be used. B. Provides the compiler with function information. C. Allows the function to be called. D. You don’t always need a prototype.

Computer Science & Information Technology

In Resource Sheet view, resources such as supplies are ____ types.

A. Work B. Material C. Supply D. Provisional

Computer Science & Information Technology

Which of the following is not a web design recommended practice?

a. design your site to be easy to navigate b. use dark text on dark backgrounds c. design your pages to load quickly d. limit the use of animated items

Computer Science & Information Technology