views:

877

answers:

2

I want to change the title showing in a page based on information I pick up from within the page (eg to show the number of inbox messages)

document.getElementsByTagName('title')[0].innerHTML="foo"; does change the title tag, but firefox does not update the displayed title (in window and tags) when this happens.

Is this possible?

+8  A: 

Try using this instead:

document.title = "MyTitle";
Vhaerun
+2  A: 

Try setting document.title to the new value

Paul Dixon