HTML and CSS Reference
In-Depth Information
77
7
Save your file.
8.
In your browser, open
tpa_mars.html
.
9.
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
show you how to insert a JavaScript function and add an event handler.