Vidyalelo
JavaScript · Q39

Document Object Model And Event Handling

Programming · JavaScript · question 39

Q39

When will the fourth argument to open() useful?

A.
When the second argument names a retired window
B.
When the first argument names an existing window
C.
When the second argument names an existing window
Answer
D.
When the first argument names a retired window

Answer: Option C

Solution

Answer: Option C
Solution:
The fourth argument to open() is useful only when the second argument names an existing window. This fourth argument is a boolean value that indicates whether the URL specified as the first argument should replace the current entry in the window’s browsing history (true) or create a new entry in the window’s browsing history (false). Omitting this argument is the same as passing false.