Multiple choice javascript

Which method will open a new window ?

  1. popUp(PageURL,WindowName,settings);

  2. window.launch(PageURL,WindowName,settings);

  3. window.close(PageURL,WindowName,settings);

  4. window.open(PageURL,WindowName,settings);

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

window.open() is the correct JavaScript method to open a new browser window. It takes URL, window name, and feature settings as parameters.