title: window.location versus just location
body: <p>Across the web, I see a vast number of JavaScript programmers writing <code>window.location</code> instead of just <code>location</code>. I was curious if anyone could offer an explanation as to why. <code>window</code> is the global object, and therefore it is unnecessary to include -- isn't it? I mean, you don't see people write <code>window.Math.floor</code> or <code>new window.Date()</code>, so I'm curious as to why it would be specified with <code>location</code>.</p>
  
  <p>I understand that <code>location</code> is considered to be a "property" of the window you're in, which I suppose makes some sense. But even so, I don't see any reason to specify the global object; it's not possible to overwrite <code>location</code> in the first place, not without redirecting the page.</p>
  
  <p>So, is this just a quirk that has been used for so long that it's become integrated with how we write JavaScript, or is there some tangible reason to do things this way? I checked Google, but alas, I came up with nothing...</p>