Vidyalelo
JavaScript · Q19

Document Object Model And Event Handling

Programming · JavaScript · question 19

Q19

What is the purpose of the assign() method?

A.
Only loading
B.
Loading of window and display
Answer
C.
Displays already present window
D.
Unloading of window

Answer: Option B

Solution

Answer: Option B
Solution:
The assign() method of the Location object makes the window load and display the document at the URL you specify.