Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
To understand client-side JavaScript, you must understand the programming environment provided by a web browser. The following sections introduce three important features of that programming environment:
The Window object that serves as the global object and global execution context for client-side JavaScript code
The client-side object hierarchy and the Document Object Model that forms a part of it
The event-driven programming model