Getting and setting window.location.