Basic JavaScript Question:
Download Questions PDF

In a pop-up browser window, how do you refer to the main browser window that opened it?

Answer:

Use window.opener to refer to the main window from pop-ups.

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
What is negative infinity? What is the data type of variables of in JavaScript?