Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var playerWin = window.open("player.htm", "playerWin", "width=300,height=130");
- playerWin.play("song.mp3"); // play() is a function in player.htm
- playerWin.play("tune.mp3");
- <script>
- var w = window.open("p.htm", "playerWin", "width=300,height=130");
- </script>
- <a href="2.htm">2</a>
- <a href="javascript:opener.w=this;">re-link</a>
- <script>
- var w;
- </script>
- <a href="javascript:alert(w);">check</a>
- user clicks on link in page-1
- page-1 asks it's parent window to open a popup
- popup opens
- user navigates away (in the iframe)
- user clicks a link in page-2
- page-2 asks it's parent window to close it's popup
Add Comment
Please, Sign In to add comment