What is the purpose of the assign() method?

Thành Đạt

New member
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
 
Answer: b
Explanation: 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.
 

Tìm kiếm

Back
Top