File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes how to avoid displaying url in a window? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to avoid displaying url in a window?" Watch "how to avoid displaying url in a window?" New topic

how to avoid displaying url in a window?

Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
can any one tell me how to avoid displaying url in the new window?

i have opened a window using"index.jsp?data="+data_value+"","main","scrollbars=yes, resizable=yes, top=100,left=100,width=800, height=400"); method.

In the new window, the url is displayed on the top with parameters, can any one suggest me some ideas for removing the url from the top.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
If you do not want to display parameters, you can not do a get, you need to do a post. Since you are doing a pop up window, you are sort of limited on it.

You can look around the web for examples of using a form to post to a pop up window.

Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 467
Hello Abhishek,

take a look at this page. It has an example of how to post a form to a popup.

There's of course another solution, which is really ugly . You can create a page that takes the parameters from a get request, put them in hidden fields in a form, then use javascript to automatically submit this form to the real page you want. This way you can open the dummy page in a popup, and it will submit the parameters to the real page you want. As I said, it's ugly, but you can use that if you face problems with posting to the popup directly (which you shouldn't ).

Visit my blog:
I agree. Here's the link:
subject: how to avoid displaying url in a window?