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

TAG

ATTRIBUTE

MEANING

table

 

Presents tabular data on a Web page

 

cellpadding

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.