Chapter 2

Programming the Browser

IN THIS CHAPTER

Bullet Defining Web APIs

Bullet Learning the difference between an API and an interface

Bullet Learning your way around the Navigator interface

Bullet Peeking into the Window interface

Bullet Investigating and manipulating the DOM

Bullet Knowing your History API

“Put simply, if an interface is poorly designed, I will not see the data I looked for, even if it's right there on the page.”

—JEFFERY ZELDMAN

Web browsers provide many APIs for interacting programmatically with their functionality. Using JavaScript, you can find out what the browser is doing as well as tell the browser what to do. In this chapter, you'll learn about the Web APIs and see how to use the most essential ones.

Understanding Web APIs and Interfaces

Web APIs are application programming interfaces for web browsers or web servers. The purpose of Web APIs is to extend the capabilities of HTTP clients or servers ...

Get JavaScript All-in-One For Dummies 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.