Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Greasemonkey cause the displayed title to change [duplicate]

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?

like image 364
Laurie Young Avatar asked Sep 27 '08 12:09

Laurie Young


2 Answers

Try using this instead:

document.title = "MyTitle";
like image 110
Vhaerun Avatar answered Sep 27 '22 23:09

Vhaerun


Try setting document.title to the new value

like image 33
Paul Dixon Avatar answered Sep 27 '22 23:09

Paul Dixon