Chapter 3. Browsers

JavaScript is a programming language interpreted by browsers. In order to run your scripts, a browser must contain a JavaScript interpreter—a module that reads and interprets the code you wrote.

But every browser has its own JavaScript interpreter, and there are differences between them, especially where the DOM is concerned. These differences cause the dreaded browser incompatibilities.

If you’re unfamiliar with browser incompatibilities, I advise you to skim through 7E, especially the Mouse Position section. Don’t worry about the technical details yet; just marvel at the incredible number of differences between the browsers (especially Explorer vs. the others).

Pretty bad, huh? Fortunately, this set of incompatibilities ...

Get ppk on JavaScript now with O’Reilly online learning.

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