IE title changes to if the page has a url with '#' , and has flash/swf embedded in it

后端 未结 5 840

The issue is, if IE (6.0+) , has flash content embedded in it, and the url of the page has a # somewhere in it, then when the flash content loads ,or if the user interacts with

5条回答
  •  自闭症患者
    2021-01-31 10:31

    I'm not really familiar with sammy.js but:

    1) the Flash object is somehow 'taking ownership' of the title property.

    OR

    2) sammy.js is clearing the title value on HTML losing focus aka Flash gaining it (less likley and don't know why would someone do that)

    If 1) -> define the title property in the Flash object itself (not a Flash user, dunno if it can be done easily)

    If 2) -> the javascript is dumping a variable string value connected to the title property?

    SUGGESTION:

    Enclose your flash object in a new

    element, assigning the
    a .click() event handler that changes the title property of a document. Try this:

    $('title').text('YourTitleHere');
    

提交回复
热议问题