What is the purpose of the assign() method?
A
Only loading
B
Loading of window and display
C
Displays already present window
D
Unloading of window
Correct Answer: Loading of window and display
The assign() method of the Location object makes the window load and display the document at the URL you specify. The difference between this method and replace(), is that replace() removes the URL of the current document from the document history, meaning that it is not possible to use the “back” button to navigate back to the original document.