I need to create a popup in my web app to load a unity file. For that I'm using Javascript's Window.Open.
I don't want the user to see the popup's URL or to give him the chance to alter the URL.
According to this link:
.htm
"location can be set to yes or no to indicate whether or not the new window should display the location or address bar. Note that this is a recommendation only as some browsers such as Firefox can disable this to ensure that the toolbar will always appear. In IE7 this setting controls whether or not the navigation bar will be displayed as the address bar will always display in that browser. "
There is no longer a chance for me to remove the location from IE7. I've tried to set it to location =no (and =0) and in fact it doesn't work in IE7/8 or Firefox. It does in Safari.
Since we all have had those boring spam popups that don't have the URL bar (called Location bar) that's a proof that there must be a way! Hope that someone has the right answer.
Thank you.
Regards, Bruno.
I need to create a popup in my web app to load a unity file. For that I'm using Javascript's Window.Open.
I don't want the user to see the popup's URL or to give him the chance to alter the URL.
According to this link:
http://javascript.about.com/library/blpopup10.htm
"location can be set to yes or no to indicate whether or not the new window should display the location or address bar. Note that this is a recommendation only as some browsers such as Firefox can disable this to ensure that the toolbar will always appear. In IE7 this setting controls whether or not the navigation bar will be displayed as the address bar will always display in that browser. "
There is no longer a chance for me to remove the location from IE7. I've tried to set it to location =no (and =0) and in fact it doesn't work in IE7/8 or Firefox. It does in Safari.
Since we all have had those boring spam popups that don't have the URL bar (called Location bar) that's a proof that there must be a way! Hope that someone has the right answer.
Thank you.
Regards, Bruno.
Share Improve this question edited Oct 9, 2009 at 9:17 spender 120k35 gold badges243 silver badges366 bronze badges asked Oct 9, 2009 at 9:11 TxugoTxugo 5,0785 gold badges36 silver badges41 bronze badges 3- 1 Can you show me an example of "those boring spam popups" that still has no address bar? That was a few years ago now. Browsers change. – spender Commented Oct 9, 2009 at 9:15
- thank you for your anwser. I could've show you a week ago in a friends blog. But after removing the web counter the pop up dissapeared. But I can assure you that It had no Location Bar. – Txugo Commented Oct 9, 2009 at 9:19
- 1 OK, maybe you are right. Even if it was, it's pretty bad form to do this now. The user should always be aware of where their browser is pointing, and trends in browser design reflect this. – spender Commented Oct 9, 2009 at 9:22
4 Answers
Reset to default 9what about inline pop-ups? You can write your own code or see this: http://docs.jquery.com/UI/Dialog.
I dont use standard window.open
javascript function at all, as in IE 8 it's IMHO impossible to hide location bar.
Inline (I mean html) dialogs have more features than window.open
.
Hope it helps.
No, there is no way to get rid of that bar in IE7 - this change was brought in as a security measure to help combat phishing.
As Feryt says, you can use inline popups, which is probably a better solution anyway.
Instead of window.open()
use window.showModalDialog()
You can use Chromium Application Mode which works on all browsers expect Safari and Firefox. I don't know the exact commands/paths for linux and mac, but you can search a bit. run this code on cmd
cd "C:\Program Files\Google\Chrome\Application"
chrome.exe --app=https://yoursitehere.extension
or
Create a shortcut: "C:\Program Files\Chrome\Application\chrome.exe" --app=https://yoursitehere.extension
For other browsers change the chrome location with the browsers' location.
By the way, this feature can be removed because of the security vulnerabilities.