• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Hiding URL in pop-up window

 
Ranch Hand
Posts: 250
Python Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 250
Python Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 250
Python Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. Ya the JSP page has its title defined in HTML title tags.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic