Le réseau pour les développeurs >
Forums - Accueil
>
Internet Explorer Web Development
>
IE appends anchor name to title bar
IE appends anchor name to title bar
- I have an html page with flash objects embedded into it and try to access the page with some anchor name appended to it, IE appends the anchor name also to the page title. Is this by design ao a bug? Is there any workaround for not displaying anchor in Title bar.
Here is the sample code:
<html>
<head>
<title>My Test Page</title></head>
<body>
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/kKo9oUAFQ_A"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/kKo9oUAFQ_A" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
</body>
</html>
Save this code as test.html in some folder and then access the page from IE.
1. C:\TestFolder\test.html ---------- Title shows correctly.(My Test Page)
2. C:\TetsFolder\test.html#123 ----- #123 gets appended to title.(My Test Page#123)
Similarly if you keep on adding flash objects to the page you will get as many anchor names appended to the title bar.(My Test Page#123#123....... and so on).
Firefox displays the title correctly in both the scenarios.
Thanks
Abhilash
Toutes les réponses
I am also having the same problem. IE display the incorrect character in the Title bar, can anybody help??
- i have the same problem haha i was looking for a solution and i ended in this forum... we need some help here... anyone?
- Nice Bug!, I can repro this in IE7, but not in IE6.
- do you have a solution for this? im using IE7
- The only possible way is to rewrite the title on page render using javascript.
ARRRGSSSSSSS ok ok ..... but how the heck can i do that ???? geez.... u're just saying but not answering how.....- Code Snippet
<script type="text/javascript">
// <![CDATA[
window.onload = function()
{
document.title = "Your site name here";
}// ]]>
</script> - This bug has been identified as bug 312 for IE7 here:
http://webbugtrack.blogspot.com/2007/12/bug-312-anchor-links-klobber-page-title.html
Hopefully IE8 will fix this. - thanks for the info dude.. if i know any update about this ill post it, cya
I am having this problem, I have tested with Safari and Foxfire and they work fine. Only IE7 doesn't function.- This is bug FP-240 at Adobe:
http://bugs.adobe.com/jira/browse/FP-240
Vote for the bug there if you want to see it fixed. - Hey guys,
In the interim why not just add some underscores to the end of your doc title ie; "index.htm _________somewords__________" that way it'll push the anchors off screen:
check out my site and see it work by clicking on the images at the bottom of the home page that has a tonne of remote page anchors:
www.aaronscgi.net
Could this affect the results with search engines?
- Roger

