JavaScript and Web Browsers

The most important thing you will be doing with your JavaScripts is interacting with the content and information on your Web pages, and through it, with your user. JavaScript interacts with your Web browser through the browser's object model. Different aspects of the Web browser exist as different objects, with properties and methods that can be accessed by JavaScript. For example, document.write() uses the write method of the document object. Understanding this Document Object Model is crucial to using JavaScript effectively. Also, understanding how the Web browser processes and executes your scripts is also necessary.

When Scripts Execute

When you put JavaScript code in a page, the Web browser evaluates the code ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.