Book Image

Object-Oriented JavaScript

By : Stoyan Stefanov, Stoyan STEFANOV
Book Image

Object-Oriented JavaScript

By: Stoyan Stefanov, Stoyan STEFANOV

Overview of this book

Table of Contents (18 chapters)
Object-Oriented JavaScript
About the Author
About the Reviewers
Built-in Functions
Regular Expressions

Chapter 7. The Browser Environment

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:

  • The BOM (Browser Object Model)

  • The DOM (Document Object Model)

  • Listening to browser events

  • The XMLHttpRequest object