O'Reilly logo

JavaScript Step by Step by Steve Suehring

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. The Browser Object Model

Up until now, we've been looking mainly at JavaScript in the abstract. This chapter starts to touch on JavaScript as it's really applied in the wild.

After reading this chapter, you'll 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 or not Java is enabled in the browser.

  • Parse the query string sent by the browser.

Introducing the Browser

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required