Link to home
Start Free TrialLog in
Avatar of hlaprade
hlapradeFlag for Costa Rica

asked on

How to remove address bar on pop up (Firefox, IE)

Hi people.

Modern browsers display the address bar always no matter if it's a pop up. We have a flash game that loads on a popup, we provide the game service to customers so they put a link to our game from their web sites. Our customers don't want to give their users the idea that they are leaving their site when opening the pop up to our game so we want to hide the address on the pop up. Is there a way to hide/remove the address bar on these pop ups? could you guys help me with ideas on what can be done?
Thanks

Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Not a chance. Instead load it into an iframe and show it with lightbox or greybox or similar
Avatar of hlaprade

ASKER

Thank you mplungjan, we tested with a frameset and it didn't work because of cross domain scripting, will the iframe make a difference?
Not working in what way?
Do you need interaction between parent page and the embedded game?
Yeah we call some JS functions from flash and also we set some cookies and as far as I know it's not possible to send cookies crossdomain wise. Only loading the page from Firefox we get Error: Permission denied for <site2> to call method Location.toString on <site1>. But we don't have any explicit Location.toString calls so it seems it comes from internals of javascript.
So show that and I'll see what it does
Normally it would be
 
if (top.location.href=="something")
That's the problem, the console on Firebug shows that error, but we don't have any references to location.href anywhere in our scripts,  I suspect that the error originates when trying to send cookies crossdomain, at least IE complains about that.... I don't know if it's posible to setup a policy that allows crossdomain cookies
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you mplungjan, I think we have some design limitations that does not allow us to do that with the iframe and the truth is that we are short of time to change it. You've been very kind on trying to help and I can notice that you are certain that and iframe will work so we're gonna consider that option an make the changes we need after we deliver this project. For now we put our product on the same customers domain but that is not a good solution if the number of customer grows a lot.
Send me a URL to the address in my profile if you want me to take a look at the scrips for possible access denied triggers