Lamez Posted December 17, 2007 Share Posted December 17, 2007 alright on my website you are able to listen to music, and play games, well I have it where when you click on a link, weather it be music or a game, it opens it up in a new window. Well I tried playing music and playing a game and it does not work, if I click on the music first then click on a game it link the game will reload in the music window. here is the code I am using: <a href="javascript:void(0)"onclick="window.open('game.html','linkname','height=110, width=210,scrollbars=no')">Play Game</a> how can I fix this? Quote Link to comment https://forums.phpfreaks.com/topic/81975-solved-new-windows/ Share on other sites More sharing options...
phpQuestioner Posted December 17, 2007 Share Posted December 17, 2007 give the music and the video pop-up windows different names - like so: <a href="javascript:void(0)"onclick="window.open('game.html','linkname','height=110, width=210,scrollbars=no')">Play Game</a> <br><br> <a href="javascript:void(0)"onclick="window.open('music.html','linkname2','height=110, width=210,scrollbars=no')">Play Music</a> Quote Link to comment https://forums.phpfreaks.com/topic/81975-solved-new-windows/#findComment-416542 Share on other sites More sharing options...
Lamez Posted December 17, 2007 Author Share Posted December 17, 2007 gosh I am restarted, I am completely lost when it comes to JS, but I think I could have figured that out. Thanks again! Your Rock1 Quote Link to comment https://forums.phpfreaks.com/topic/81975-solved-new-windows/#findComment-416545 Share on other sites More sharing options...
phpQuestioner Posted December 17, 2007 Share Posted December 17, 2007 no problem Quote Link to comment https://forums.phpfreaks.com/topic/81975-solved-new-windows/#findComment-416585 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.