Chapter 4. Handling the Browser Environment

Handling the Browser Environment

In this chapter, we’re going to start putting JavaScript to work where it was designed to be used: in browsers. That means we’re going to start interacting with browsers using the various browser objects available to us in JavaScript, such as the window, document, and navigator objects. This chapter will provide us with an in-depth overview of not only those objects, but also the different object models available in various browsers and versions. We’ll need that information in coming chapters.

Now that we’re working with browsers, we’ll also consider how to handle cross-browser programming issues, discussing ...

Get Inside JavaScript 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.