This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hiding URL in pop-up window

 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hide the status bar of the pop up window....
http://www10.brinkster.com/A1ien51/scripts/PopUpWinGenV3.htm
 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
Firefox Browser Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. Ya the JSP page has its title defined in HTML title tags.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
want a way around it, open a page that contains an iframe and have that iframe contain the page you want.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic