What is the truth?

Microsoft's documentation describing the behaviour of their browser is correct.

Is there any solution to hide the addressbar?

No. If you could hide it, then you could use HTML/CSS to make something that looked like a common address bar. You could then put a different address in it. You could then trick people into thinking they were on a different site and entering their password for it.

It is impossible to conceal the user's location from them because it is essential for security that they know what their location is.

Answer from Quentin on Stack Overflow
Top answer
1 of 4
13

location is the window feature you want to set to no or 0 to hide the address bar.

Opinionated Advice: You can't rely on popups showing because most people have popup blockers installed to curb abuse, so if you can get away with it, don't use a pop up at all! Use something like the jQuery UI Dialog plugin.

Example:

window.open("http://www.mydomain.com/mypage.htm", "mywindow", "location=0,menubar=0,status=0,scrollbars=0,width=100,height=100");

Format

window.open( [Url] [, Name] [, Features] [, History] )

Window features you can control

  • status The status bar at the bottom of the window.
  • toolbar The standard browser toolbar, with buttons such as Back and Forward.
  • location The Location entry field where you enter the URL.
  • menubar The menu bar of the window
  • resizable Allow/Disallow the user to resize the window.
  • scrollbars Enable the scrollbars if the document is bigger than the window
  • height Specifies the height of the window in pixels. (example: height=’350′)
  • width Specifies the width of the window in pixels.
2 of 4
6

(untested)

function openWindow(){
var browser=navigator.appName;
if (browser==”Microsoft Internet Explorer”)
{
window.opener=self;

}
window.open(‘filename.htm’,'null’,'width=900,height=750,
toolbar=no,scrollbars=no,location=no,resizable =yes’);
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height-100);
self.close();
}

Got this from http://saher42.wordpress.com/2006/08/10/hiding-the-address-bar-on-pageload-using-javascript/.

Discussions

Location=no but still i see addressbar - JavaScript - SitePoint Forums | Web Development & Design Community
hey all, i m working a web app in which i wanna remove the address bar after login. i created a function in which i said location=no but still i see the address bar. is there any other object to disable it? or am i doing it wrong More on sitepoint.com
🌐 sitepoint.com
0
April 1, 2010
Moodle in English: Pop-up window without the address bar | Moodle.org
Learn about Moodle's products, like Moodle LMS or Moodle Workplace, or find a Moodle Certified Service Provider. Moodle.com · Our social network to share and curate open educational resources. MoodleNet More on moodle.org
🌐 moodle.org
June 3, 2020
How to Disable popup window Address bar?
On December 4, 2023, Salesforce Developers discussion forums joined the Trailblazer Community. Learn more with our FAQs! More on developer.salesforce.com
🌐 developer.salesforce.com
November 6, 2014
opening a new window and hiding the addressbar and ...
🌐 forum.jquery.com
🌐
Mozilla Bugzilla
bugzilla.mozilla.org › show_bug.cgi
337344 - Disable location bar hiding by default, to make chrome spoofing harder
I found the code which handles external links but saw no dependency on the location bar or chromehidden (instead it checked window.toolbar.visible). I ran a window.open javascript which had everything hidden but the location bar. Not only was the location bar read-only, but Fx had no trouble opening a new full-chrome window when I typed in a URL in the Run dialog.
🌐
SitePoint
sitepoint.com › javascript
Location=no but still i see addressbar - JavaScript - SitePoint Forums | Web Development & Design Community
April 1, 2010 - hey all, i m working a web app in which i wanna remove the address bar after login. i created a function in which i said location=no but still i see the address bar. is there any other object to disable it? or am i doin…
🌐
Moodle
moodle.org › mod › forum › discuss.php
Moodle in English: Pop-up window without the address bar | Moodle.org
June 3, 2020 - I want to hide the address bar, and my below code works well to pop up the URL but the address bar still shows the URL. How can I hide the URL from the window? <p><a href="#" onclick="window.open('https://xxx/', 'winname', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600');return false;">Click here</a></p>
🌐
CodeProject
codeproject.com › Questions › 444796 › open-new-window-with-no-address-bar-in-javascript
https://www.codeproject.com/Questions/444796/open-...
Do not try and find the page. That’s impossible. Instead only try to realise the truth - For those who code; Updated: 1 Jul 2007
Find elsewhere
🌐
Salesforce Developers
developer.salesforce.com › forums
How to Disable popup window Address bar?
November 6, 2014 - On December 4, 2023, Salesforce Developers discussion forums joined the Trailblazer Community. Learn more with our FAQs!
🌐
SitePoint
sitepoint.com › javascript
Hide the browser address bar - JavaScript - SitePoint Forums | Web Development & Design Community
November 25, 2010 - I want to hide the browser address bar when open a new window. I can hide menu bar, status bar, etc except address bar. Can any one help me please.
🌐
Experts Exchange
experts-exchange.com › questions › 22898956 › Hide-title-bar-or-URL-in-Javascript-window-open.html
Solved: Hide title bar or URL in Javascript window.open | Experts Exchange
October 17, 2007 - We need to hide the URL so it is not apparent to a web user that the url has changed. I don't think it matters if the user wants to poke around and actually sees the URL but we don't want to make it obvious. I've reviewed many posts on EE and found some great solutions but none of them are actually hiding the the title bar. Here's the solution I liked the best and tried to implement. <script language="JavaScript"> <!-- function openWindowNew( windowURL, windowName) { windowFeatures='width=518,
🌐
Quora
quora.com › How-do-I-hide-the-URL-of-a-website-in-Chrome-using-javascript
How to hide the URL of a website in Chrome using javascript - Quora
Answer: press F11 . . . . no need for javascript as well :P or use : [code]window.scrollTo(0,1); [/code]It’s a hack and does NOT work on Chrome 49+ The Chrome team has recently implemented a feature that tells the browser to launch the page ...
🌐
Stack Overflow
stackoverflow.com › questions › 49356289 › remove-the-address-bar-and-location-bar-in-window-open-javascript › 49356415
c# - remove the address bar and location bar in window.open javascript - Stack Overflow
function OpenPopupWindow() { var userWidth = screen.availWidth; var userHeight = screen.availHeight; leftPos = (userWidth - 500) / 2, topPos = (userHeight - 500) / 2; settings = 'modal,scrollBars=no,resizable=no,titlebar=no,status=no,toolbar=no,menubar=no,location=no,directories=no,left=' + leftPos + ',top=' + topPos + ',width=500, height=500'; window.open("EnhanceTerms.aspx", "window", settings); } As I expected, the address bar is not showing when i open this page in firefox and IE, but in Chrome it is still showing. And also how to hide the minimize and maximize from the pop up. please help me on this. javascript ·