What's the difference between window.location and document.location?

JavascriptFront End TechnologyObject Oriented Programming

According to the W3C, they are the same.

But you should always prefer using a window.location instead of document.location.

raja
Updated on 02-Dec-2019 06:08:40

Advertisements