Gutspiller Posted October 30, 2007 Share Posted October 30, 2007 Hopefully the title wasn't too confusing. Tried to give it some detail. Basically is what I happening right now is I have a flash game running in the main browser window. I have a button on that page, that when clicked opens a popup with the flash game running in full screen. The problem with this is that the flash game continues to run in the parent window as well as the popup. I want it so that when the fullscreen button is clicked that the parent window goes to a default page that has no flash game on it, or goes back to the sites frontpage, while the popup continues to open the flash game in the fullscreen popup. Can anybody help me with how to do this? Unfortunately I know very little coding and would need something that was a step step of what to do or the exact code that I could copy and paste into my site. Here's an example of the type of page I'm talking about: http://www.arcadeupload.com/arcade/showphoto.php/photo/920/limit/views Can anybody please help me with this so I can give this feature a little bit more polish? I'd appreciate any help somebody can give me. Thank you! Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted October 31, 2007 Share Posted October 31, 2007 you can use javascript code in the popup window <script> parent.document.location.href = #the href </script> Quote Link to comment Share on other sites More sharing options...
Gutspiller Posted October 31, 2007 Author Share Posted October 31, 2007 Where exactly do I put that? Do I put it within this code? <!-- Begin function popUpSMALLER(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=348,height=261,left = 466,top = 349.5');"); } // End --> Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 1, 2007 Share Posted November 1, 2007 put it in the popup window little change in code <script> if (parent) { parent.document.location.href = "http://..."; } </script> Quote Link to comment 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.