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!

Anchor Name in Title Bar

Status
Not open for further replies.

altendew

Programmer
Mar 29, 2005
154
US
For some readon if I access my page like..

index.php?act=View&#section1

It will goto the anchor point <a name="section1">, but once the page is done loading, it will add #section1 to the end of the title bar, which is really weird.

Any Help is appreciated.
 
Thats not what im talking about.. Say my current set up is like this

<html>
<head>
<title>Site Name</title>
</head>
<body>
<p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p>
<a name="section1">
<p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p>
</body>
</html>

Now lets say I access this page like index.php?act=View&#section1

It will drop down to section1 and once the page is DONE loading the title bar will change to Site Name#section1
 

Do you have PHP or JS on the page that is doing this?

Locally, neitehr IE or FF exhibit this behaviour for me... which browser are you seeing this in? Does it still happen if you copy the file locally?

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
The syntax you're using is wrong. Putting ampersand before the # character will make browsers believe you're about to add another variable rather than look for anchor. Try fixing that if it helps:
Code:
index.php?act=View#section1
 
Im using IE, and I just did it without the ampersand and get same result..
 
Im using IE and PHP, and I just did it without the ampersand and get same result..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top