window.variableName
<p>I am going through some code and at the beginning of the script we have <code>var emailID = email</code>. Later on, the code refers to emailID by going <code>window.emailID</code>. I am wondering what are the rules that allow you to refer to a variable by going window.variableName?</p>

<p>I cannot post my script online as it is directly related to my work and would violate my contract.</p>
