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


According to the W3C, they are the same.

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

raja
Published on 02-Dec-2019 06:08:13
Advertisements