title: Where do I declare global JavaScript variables in a web page?
body: <p>Where do I need to place a snippet of JavaScript code that initializes a variable that must be visible to all code executed with the page?  (For example, event handlers on elements will need to access this variable). </p>