Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Nov 2004
    Location
    near the only active volcano in the continental US
    Posts
    409
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Question Controling the browser title bar

    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

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Edit: My solution was totally off the subject, its late, and I misread your question sorry.
    Last edited by _Aerospace_Eng_; 04-21-2005 at 06:53 AM.

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Is this what you wanted?

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

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #4
    Regular Coder
    Join Date
    Nov 2004
    Location
    near the only active volcano in the continental US
    Posts
    409
    Thanks
    6
    Thanked 2 Times in 2 Posts
    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

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #6
    Regular Coder
    Join Date
    Nov 2004
    Location
    near the only active volcano in the continental US
    Posts
    409
    Thanks
    6
    Thanked 2 Times in 2 Posts
    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

  • #7
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •