MSDN > 論壇首頁 > Internet Explorer Web Development > IE appends anchor name to title bar
發問發問
 

問題IE appends anchor name to title bar

  • Wednesday, 19 September, 2007 0:14Abhilash Pandey 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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

所有回覆

  • Wednesday, 19 September, 2007 0:32Amit K Mishra 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    I am also having the same problem. IE display the incorrect character in the Title bar, can anybody help??

  • Thursday, 13 December, 2007 8:06Mesknot 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    i have the same problem haha i was looking for a solution and i ended in this forum... we need some help here... anyone?

     

  • Thursday, 13 December, 2007 14:16unique_username 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Nice Bug!, I can repro this in IE7, but not in IE6.



  • Thursday, 13 December, 2007 15:54Mesknot 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    do you have a solution for this? im using IE7

     

  • Saturday, 15 December, 2007 8:13Abhilash Pandey 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    The only possible way is to rewrite the title on page render using javascript.
  • Saturday, 15 December, 2007 13:04Mesknot 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

     

    ARRRGSSSSSSS ok ok ..... but how the heck can i do that ???? geez.... u're just saying but not answering how.....
  • Thursday, 28 February, 2008 11:26Pseudonymnz 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    Code Snippet

    <script type="text/javascript">
    // <![CDATA[
     window.onload = function()
     {
      document.title = "Your site name here";
     }

    // ]]>
    </script>

     

     


  • Thursday, 28 February, 2008 15:30unique_username 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • Saturday, 1 March, 2008 20:25Mesknot 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    thanks for the info dude.. if i know any update about this ill post it, cya

     

  • Thursday, 27 March, 2008 19:26Remitdlo 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

     

    I am having this problem, I have tested with Safari and Foxfire and they work fine. Only IE7 doesn't function.
  • Tuesday, 26 August, 2008 16:00S Buchanan 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • Tuesday, 8 September, 2009 10:23rogerchristmas 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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