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

問題IE appends anchor name to title bar

  • 2007年9月19日 上午 12: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

所有回覆