Search code examples
javascriptfirefoxtitlebar

Modify Firefox titlebar through Javascript Extension


I have an extension for Firefox written in Javascript that I would like to make able to append text to the window's titlebar. Is this possible?


Solution

  • You can just use the document.title property to dynamically change your page's title, which is what it shows in the window's titlebar:

    <script type="text/javascript">
    document.title += "The Text You Want To Add";
    </script>