Enter the InchesToCentimeters and CentimetersToInches functions from Figure 9.7 in a text file named convert.js. Then enter

Question:

Enter the InchesToCentimeters and CentimetersToInches functions from Figure 9.7 in a text file named convert.js. Then enter the text from Figure 9.8 into a new Web page (in the same location) and verify that it behaves as described.

Once you have done this, modify the page so that it can also perform the opposite conversion, from centimeters to inches. You will need to add a new text box, where the user can enter a number of centimeters, and a button for carrying out the conversion. The converted value should be displayed in the same page division, outputDiv, as before?

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

Step by Step Answer:

Question Posted: