views:

162

answers:

1

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?

+2  A: 

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>
Parrots
Will this change when the user navigates to another page? Is there a way to make it permanent.
directedition
Not sure on that one. I'd assume not, you'd have to run the document.title on every page load. Can't say for sure though.
Parrots
Yes, you would have to set this on every page seperately.
tomlog