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

<>

This question already has an answer here:

Answers


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


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.


you can use a modal dialog. Not exactly a pop up, but it will open another container. Like an overlay. You see people doing this a lot with images, but you can also use this for html. There are a ton of plugins for jquery.

Heres one with some examples though: http://jquery.com/demo/thickbox/

I personally like http://fancybox.net/

Only problem is you can't 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 that in ajax.

you would want to use something like curl for this.


You could have a generic page that has an embedded iframe to hide the actual page. Would be a little tricky to pass the right data though. Not really worth it imo.


Need Your Help

How to get a list of week days in a month?

c# .net linq list datetime

In this other question it shows how to get all days of a month. I need the same thing, but I only want to list days of week (I want to exclude weekends).

Running a method in BackGroundWorker and Showing ProgressBar

c# winforms multithreading progress-bar backgroundworker

What I want is when some method is doing some task UI keeps itself active and I want to show the progress of the work in a progress-bar.