Should both of them reference the same object?
window.location is the more reliably consistent of the two, considering older browsers.