Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide javascript window.open address bar / location bar? [duplicate]

How can I hide the location/address bar of popup window created using JS ? am attaching a image where I marked the place wanted to be hidden.

test

Is it possible ? I use the below script for this.

    var ctr=0;
    function openpopup(popurl){
    var winName = "New_"+(ctr++);
    winpops=window.open(popurl,winName,"height=300,width=500,top=300,left=500,scrollbars=yes,resizable")
    }

and used this to call onClick='openpopup(this.href);return false;'

Please help me for the same.

like image 434
Gopipuli Avatar asked Aug 24 '11 05:08

Gopipuli


People also ask

How do I hide my browser address bar?

To get started enter “about:flags” into the Address Bar and hit Enter. Scroll down until you see the listing for Compact Navigation. Enable it and let the browser restart to gain access to the feature. Once the browser has restarted right click on one of the tabs and select Hide the toolbar from the Context Menu.

How do I hide address bar in Chrome programmatically?

var winFeature = 'location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes'; window. open('Result. html','null',winFeature); In many solutions, just the location=no attribute can hide the address bar (in both IE & Chrome).

How do I hide the address bar in Microsoft edge?

Navigate to the page where you want to hide the address bar and press F11 or Fn + F11, depending on whether the function key is locked. Also, full-screen mode helps hide the Toolbar as well in Edge.


1 Answers

You cannot hide the address bar in modern browsers. That is a security measure. The user must always know on what page he is. Also in that address bar is shown what type of page he is in (HTTP or HTTPS) and information of that webpage if it is secure.

So, sorry, but you cannot do that.

like image 160
Mihai Iorga Avatar answered Sep 25 '22 00:09

Mihai Iorga