File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Remove URL from the title Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Remove URL from the title" Watch "Remove URL from the title" New topic
Author

Remove URL from the title

Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
I've searched the internet in which I found this question asked, but the answers where not appropriate for solving my problem.

In my website I use the following code

wininfo =window.open(url,text,features);

It shows the URL and the browser name in the title bar. I simply don't want that, because I want to show just the title which I give the the popupscreen.

As extra information I use this code for opening a popup window which reads code from a jsp.


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Look up the API for window.open(). You will see options for controlling whether the toolbars and such are displayed or not.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
I've done already that, but it looks like that's standard not possible. So I need an alternative way or I misread, but I shall a try again.

Maybe I need to explain my problem.

In the title bar I have

http://127.0.0.1:8090/localhost - MyTitle - Mozilla FireFox
I would like to have - MyTitle -
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Not possible. The browsers will put whatever they please in the caption.
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
I understand so I've to search for an another way for popup's without the use of javascript.

I've read that it's a security issue, because with popup's you have to know from where it came.

Thanks for your answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remove URL from the title