| Author |
Hiding URL in pop-up window
|
Debashish Chakrabarty
Ranch Hand
Joined: May 14, 2002
Posts: 224
|
|
Hi Ranchers, One of my JSP pages has a list of hyperlinks clicking on which opens another JSP in a pop-up window. I do this using a javascript function. However, while the pop-up page loads the window shows the JSP page URL in the title bar of the pop-up window. This is what I wish to avoid. If needed I may put some string such as "Page Loading..." and hide the URL from showing at all. Any way to achieve this? Thanks for your time..
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50674
|
|
Not exactly sure what you are asking here. If you want to arbitarily write your own string to the address bar, there's no way to do that. If you want to suppress the display of the address bar in your popup, then be sure to create the popup via window.open() (rather than a target attribute) and use the 3rd parameter to specify which 'decorations' should be omitted or included. hth, bear
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
hide the status bar of the pop up window.... http://www10.brinkster.com/A1ien51/scripts/PopUpWinGenV3.htm
|
 |
Debashish Chakrabarty
Ranch Hand
Joined: May 14, 2002
Posts: 224
|
|
Thanks for the replies I am indeed using window.open() to have a pop-up window. My pop-up window does not show address-bar/status bar. But when the page loads the complete URL of the JSP page is displayed in the page title bar. (in a normal window we notice this URL in the status bar too unless suppressed using javascript). When the page fully loads it displays the page title (which I don't mind). My purpose is to stop the URL from showing up (security reasons) on the window title-bar while the page loads. Regards,
|
 |
Bear Bibeault
Author and opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50674
|
|
Have you tried explicitly setting the title via the <title> tag? hth, bear P.S. The URL will still be available via "view page info" or "properties" (or some such) on the context menu.
|
 |
Debashish Chakrabarty
Ranch Hand
Joined: May 14, 2002
Posts: 224
|
|
|
Thanks for the reply. Ya the JSP page has its title defined in HTML title tags.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
|
want a way around it, open a page that contains an iframe and have that iframe contain the page you want.
|
 |
 |
|
|
subject: Hiding URL in pop-up window
|
|
|