I know that document.URL
can not be set, while location.href
can.
But the Document indicates:
URL is a replacement for the DOM Level 0
location.href
property.
So when would we use document.URL
?
I know that document.URL
can not be set, while location.href
can.
But the Document indicates:
URL is a replacement for the DOM Level 0
location.href
property.
So when would we use document.URL
?