I have a question regarding resolution of property names on global object (window object in case of browser hosting environment).
Lets say we have a global variable with the same name as property of a window object.
var location = "Test";
Global variable is in fact a property of global object (window). So having declared global variable location
we cannot access original window.location
As far as I know there is no way to access original property of window in this case but maybe someone has a clue?
Interestingly enough it seems that in Firefox windowâs property takes precedence over global variable of the same name and for example var location = "Test.html"
changes current location.