I know that document.URL can not be set, while location.href can.
document.URL
location.href
But the Document indicates:
URL is a replacement f
They're interchangeable as far as getting data is concerned, but as you pointed out document.URL can not be set. I just always use location.href since it's a getter/setter.