HTML and CSS Reference
In-Depth Information
77 7
Save your file.
In your browser, open tpa_mars.html .
Enter your weight in the Your Weight on Earth field and click the button to test the
JavaScript, as shown in Figure 21-7.
FiGure 21-7
Watch the video for Lesson 21 on the DVD with the print book, or watch
online at to see examples from this lesson that
show you how to insert a JavaScript function and add an event handler.
Search WWH ::

Custom Search