...

View Full Version : Controling the browser title bar



greasonwolfe
04-21-2005, 06:41 AM
I am pretty sure I have seen it before but I cant find it now. What I am looking for is a way to make sure the title of the browser window stays the same when the visitor clicks on an anchor link in the page. For instance, most of my scripts change something on the page itself, so I use the

<a href="#anchorname" . . . ></a>

However, when I click on the link to activate the js, it changes the title of the page to reflect. . .

MyURL#anchorname

Is there any way to keep this from happening? I tried applying the title attribute to the <a> tag but that doesnt seem to work.

I am not looking for someone to solve this problem, just need a little guidance to something that will give me a bit more information on the subject, so if anyone has any ideas, please toss them my way.

GW

_Aerospace_Eng_
04-21-2005, 06:47 AM
Edit: My solution was totally off the subject, its late, and I misread your question sorry. :o

glenngv
04-21-2005, 06:50 AM
Is this what you wanted?

<a href="#anchorname" onclick="theFunc();return false;"></a>

greasonwolfe
04-21-2005, 06:57 AM
I am not sure if I am explaining it right, but yes, I mean the bar at the top of the browser with the minimize/maximize/close buttons. It is not an entirely important thing, but it would be nice if I could keep the page title from changing when the script is activated. If it can't be done, I can live with it, but since I am trying to dynamically change the page content, I thought it would be kind of nice if the page title didnt change as soon as a "link" was clicked on.

But thanks for the quick responses, I really appreciate the input.

GW

glenngv
04-21-2005, 07:44 AM
Do you mean that when the page is loading, the IE title bar displays (for a moment) the URL? You can't do something about that.

greasonwolfe
04-21-2005, 08:04 AM
When the page first loads, it displays the title just as it should be. . i.e.

Shadows of Existence Role-Playing Forum

once you click on one of the arrows or buttons to "start showing" content, the title bar changes to read. . .

members.aol.com/ . . . newserftest.html#serftest.html

Like I said, it isnt a big deal, was just curious if it could be controlled or not, and thanks again for the quick responses.

GW

glenngv
04-21-2005, 08:22 AM
When IE is busy loading the page, it displays the URL of the page in the title bar. This is IE behavior and cannot be controlled.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum