9 JavaScript 2: Using JavaScript

Chapter Objectives

In this chapter you will learn . . .

The previous chapter introduced the fundamentals of the JavaScript programming language. This chapter builds upon those foundations and shows you how to use JavaScript in a practical manner. To do so, this chapter begins with the Document Object Model (DOM), which is a programming interface for interacting with the contents of an HTML document. The chapter will then build on the DOM to cover event handling, one of the most important components of practical JavaScript programming.