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.

Related Questions

Why is the replace() method better than the assign() method?
How to assign the image source in JavaScript?
Which is the valid filename assign in MS-DOS?
Which commands is used to assign executable permission to all of the files named "letter"?

Next steps