I need to allow the user to click the link in "page-1.htm" and open a popup. Then, when the user views "page-2.htm" in the main browser window, I need to be able to link to the popup.
JavaScript in "page-1.htm"
var playerWin = window.open("player.htm", "playerWin", "width=300,height=130"); playerWin.play("song.mp3");
JavaScript in "page-2.htm"
playerWin.play("tune.mp3");
This code on page 2.htm generates a "playerWin not defined" error. This is understandable because no variable named playerWin is defined on page 2.htm.
My question is: can I link to a popup from page-2.htm?
source share