Example 12-1 shows a sample HTML file that includes a
simple JavaScript program. Note the difference between this example
and many of the code fragments shown earlier in this book: this one
is integrated with an HTML file and has a clear context in which it
runs. Note also the use of a language attribute in
the <script> tag. This is explained in the
next section.