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
D When the first argument names a retired window

Correct Answer: When the second argument names an existing window

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.

Related Questions

In a class , three-fourth of the boys play football, one-half play cricket, one fourth of those who play cricket do not play football. Which of the following statements is definitely true?
In a class, three-fourth of the boys play football, one-half play cricket, one-fourth of those who play cricket do not play football.
What will happen if the first argument of open() is omitted?

Next steps