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?
Try using this instead:
document.title = "MyTitle";
Try setting document.title to the new value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With