Localization of <title> string

Hi,

I am trying to localize all the string for the preferences dialogue - However, while using ids and .document.getElementById("myID").innerHTML = LOCAL_SETTINGS_TEXT_STRING1 works for all the html within the <body> tag, for some reason, it does not work for the head <title> innerHTML.

Any advice on how to change this using JS

Many thanks in advance


Answer this question

Localization of <title> string

  • Mr_White

    Have you tried document.title Like this:

    <HTML>
    <HEAD>
    <SCRIPT type="text/javascript">
    <!--

    var iCounter = 1;
    function setTitle()
    {
    document.title = "Counter: " + iCounter;
    iCounter++;
    setTimeout("setTitle()", 1000);
    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY onload="setTitle();">
    Watch the title change!
    </BODY>
    </HTML>


  • csann

    Thanks - I realised I was doing something daft - the title actually gets picked up from the Manifest, which is easily localisable. Thanks!

  • Localization of <title> string