View Full Version : Controling the browser title bar

Apr 21st, 2005, 05: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. . .


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.


Apr 21st, 2005, 05:47 AM
Edit: My solution was totally off the subject, its late, and I misread your question sorry. :o

Apr 21st, 2005, 05:50 AM
Is this what you wanted?

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

Apr 21st, 2005, 05: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.


Apr 21st, 2005, 06: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.

Apr 21st, 2005, 07: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.


Apr 21st, 2005, 07: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.