According to the W3C, they are the same.But you should always prefer using a window.location instead of document.location.