July 2008
Beginner
356 pages
6h 8m
English
You know that JavaScript programs don't run on their own; they need a host environment. Pretty much everything discussed so far in this book was related to core ECMAScript/JavaScript and can be used in many different host environments. Now let's shift our focus to the browser, as this is the most popular and natural host environment for JavaScript programs. In this chapter, you will learn about:
In order to include JavaScript in an HTML page, you need to use the <script> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ...
Read now
Unlock full access