Possible Duplicate:
What's the difference between window.location and document.location in JavaScript?
In JavaScript, both window
and document
have a location
property, and by setting both to a different URL, browser loads the new URL.
What's the difference between them?