Which of the following method loads a new document?
A
location.new()
B
loadnew()
C
location.load()
D
location.assign()
Correct Answer: location.assign()
The window.location object can be written without the window prefix. Some examples are window.location.href returns the href (URL) of the current page window.location.hostname returns the domain name of the web host.