Single Choice Easy

QThe fourth argument to open() will be useful when?

ID: #5120 Javascript DOM & Event Handling MCQ 139 views
Question Info
#5120Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • 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

Explanation

The fourth argument to open() is useful only when the second argument names an existing window.
The fourth argument is a boolean value, indicating whether the URL 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 by default.

Share This Question

Challenge a friend or share with your study group.