HTML and CSS Reference
In-Depth Information
onLoad event handler calls
rndimage() and copyRight()
when Web page loads
In line 95, click after
the y in the word
do not press
e n t e r key
Press the
s p a c e b a r once
and type onLoad=
before the >.
Do not press the
e n t e r key at the end
(Figure 11-13).
Figure 11-13
To Save an HTML File and Test a Web Page
With the code for the user-defined functions and the JavaScript section for the
copyright information and the date last modified complete, you should save the HTML
file and test the Web page. The following steps save the HTML file and then test the
Hickory Oaks Forest Preserve Home page.
With a USB drive plugged into your computer, click File on the menu bar and then click Save
to save the Chapter11-1homesolution.html file.
Click the Internet Explorer button on the taskbar and click the Refresh button on the browser
If necessary, scroll down to the see the bottom of the Web page and the copyright
Move the mouse over the Center button, but do not click the mouse. Note that the
image changes.
Click the Refresh button to see a different nature image generated by the random
number generator user-defined function (Figure 11-14).
random image
displays when
Web page is
Figure 11-14
Search WWH ::

Custom Search