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

How can I hide the location / address bar of a popup created with JS? I attach an image where I marked the place to hide.

test

Is it possible? For this, I use the script below.

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.

+7
source share
4 answers

Forget window.open() . Use jquery ui or jquery tooling overlay instead. The js popup will work.

0
source

You cannot hide the address bar in modern browsers. This is a safety measure. The user must always know which page he is on. Also in this address bar displays the type of page in which it is located (HTTP or HTTPS), and the information on this web page, if it is protected.

So sorry, but you cannot do this.

+24
source

you can use modal dialog. Not quite a popup, but it will open another container. Like an overlay. You see that people do a lot with images, but you can also use this for html. There are many plugins for jQuery.

Here is one example: http://jquery.com/demo/thickbox/

I personally like http://fancybox.net/

Only problem is that you cannot use ajax to call another website, but you can create a page in php or whatever, and get the contents of another page, and then return it to ajax.

you would like to use something like curl for this.

+3
source

You may have a shared page with a built-in iframe to hide the actual page. It would be a little difficult to pass the correct data. It’s not really worth it.

+1
source

All Articles