Chapter 9. The Browser Object Model

After completing this chapter, you will be able to

  • Understand the different objects available as part of the window object.

  • Use the navigator object to view properties of the visitor’s browser.

  • Obtain information about the visitor’s screen, including available height and width.

  • Use JavaScript to detect whether Java is enabled in the browser.

  • Parse the query string sent by the browser.

Introducing the browser

Until this chapter in the book, you reviewed JavaScript mainly in the abstract. This chapter starts to examine JavaScript as you’d apply it in the real world.

I feel rather silly about writing this, but it’s important, so I’m going to say it anyway: the browser is central to JavaScript programming. Projects like ...

Get JavaScript Step by Step now with O’Reilly online learning.

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