Using window object
<p>I've seen lots of people using <code>window.</code> when calling some variable. But aren't all the variables of a same window actually in <code>window</code>?<br>
Example:</p>

<pre><code>window.onorientationchange = function() {
  var orientation = window.orientation; // &lt;-- WHY?
  switch(orientation) {
    /* ... */
  }
}
</code></pre>

<p>But the same people use <code>alert()</code>, <code>document</code>, etc. So why?</p>
