🎴 Flashcard Mode

JavaScript Fundamentals

Card1 / 10
Mastered0
Review0
QuestionClick to flip

What is the correct JavaScript syntax for opening a new window called "window5" ?

AnswerClick to flip back
A
window.open("http://www.ex-designz.net","window5")
💡 Explanation:

The window.open() method opens a new browser window. It takes the URL as the first argument and the window name as the second. Option B correctly shows this syntax: window.open('url', 'windowname'). Options A, C, and D use incorrect methods or syntax that don't exist in JavaScript.

Change Mode