4.14 EXECUTION CONTEXTS

Just like any other programming language, JavaScript also executes in a specific context. But in this case, it is slightly different because there could be multiple “global” contexts since each separate browser window (or a frame) in the client side defines its own specific global context. Some of these contexts can be linked as well. Knowledge of this behavior leads to an important security aspect which will be discussed later in this section.

Get Web Technology: Theory and Practice 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.