window.location versus just location
Across the web, I see a vast number of JavaScript programmers writing window.location instead of just location . I was curious if anyone could offer an explanation as to why. window is the global object, and therefore it is unnecessary to include -- isn't it? I mean, you don't see people write window.Math.floor or new window.Date() , so I'm curious as to why it would be specified with location . I understand that location 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