MCQ Single Best Answer Easy

QWhat will happen if open() does not receive the first argument?

ID: #5117 Javascript DOM & Event Handling MCQ 120 views
Question Info
#5117Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

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

  • A Error Page
  • B Remains in the same page
  • C about:blank
  • D Reloads the page
Correct Answer: Option B

Explanation

The first argument in the open function is for the url of the page which is to be opened
When the first argument of the open() is omitted, the about:blank is opened by default.

Share This Question

Challenge a friend or share with your study group.