Chapter 3. Language Essentials

Now that you've gotten your feet wet, let's wade a bit deeper into the JavaScript language. In this chapter, we'll go into more detail about the basic elements of JavaScript, and introduce you to other aspects of the JavaScript language, such as loops and functions (don't let your eyes glaze over; we promise that it'll be easy).

You'll see how you can check for the presence of browser plug-ins, use JavaScript to write your Web pages for you, learn how JavaScript handles errors that the user makes, put multiple scripts on a page, and much more.

Table 3.1. Just Enough HTML—The Basics






Presents tabular data on a Web page



The amount of space inside a cell, between the contents and the ...

Get Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.