Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

title showing url - why?

Status
Not open for further replies.

XgrinderX

Programmer
Mar 27, 2001
225
US
I have noticed that on some sites I work on, if the opened browser window does not include the address bar, then the URL displays in the title bar before the actual title I have given the page, which makes it a pain to identify in the taskbar when several windows are open.

Example: - My Home Page

However, if I add the address bar to the browser window it displays like I want it to as simply "My Home Page".

Is there a way to stop this behavior? I want the title bar to always ONLY show the title I have given the page, NOT the URL.

-Greg
 
if you're using the <title> tag in <head>, (which you should always do), then it should display what you've put there. unless some browsers override this... is there a site we can see this or do you have code to duplicate the problem?


-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Go to this URL:

Click the Login/Begin Search link and you will see what I am talking about. The URL shows before the <title> tag value. You can view source of that page and see that I am using the title tag inside the <head>.

If anyone sees anything goofy that is causing this issue or knows of a way to correct it, please let me know.

Thanks,

-Greg
 
Hmm if that were the case then the URL I posted would have the same issue, but it does not.

The only correlation I have noticed is the address bar. If you were to register for that site, login, perform a search, and click the Printable Result Set button, it will open a new window with the file menu and toolbar available, but no address bar. You'll notice the URL in the title bar.

However, if you click View and add the address bar and then refresh, BAM - the title bar is correct!

This is so strange.
 
I think it may be a security feature - to stop unscrupulous people building pop-up pages that look like Windows' dialog boxes, and capturing data from the unwary. If so, there's not much you can do about it with normal windows. You might be able to make something prettier with an <iframe>, but it'll shut out some ancient browsers.

Personally, I'd just put up with it, or even abandon using a pop-up window altogether and put the login fields on the main page. It's probably more accessible that way anyway - and I presume you're subject to Section 508. By the way, in similar vein, the black-on-mid-blue on your buttons isn't a great colour combination for people with poor vision.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Hmm if that were the case then the URL I posted would have the same issue, but it does not.

Actually it does exactly the same for me!

the title bar shows the URL until the page is rendered and it's the same in all browsers.

I've just checked a few other sites and they all show the url first.
must be just a glitch that keeps the url there. It does happen when an error hangs the page and you fix and refresh the page during debugging. So maybe there is some non fatal error or something on your machine. What happens in different browsers on your machine?





Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top