(This is a repost -- the original got tucked away into an old thread
because I used the same Subject name.)
I'm trying to change the document title to add an asterisk when the
document becomes "dirty", as seen on editor applications.
I use the code below. Venkman shows that everything looks as expected.
The last line is for the debugger, which indicates that the title is
changed, but it does not display.
var newtitlenode = document.createElement("title");
var newtext = document.createTextNode("MyTitle"+(dirty?"*":""));
newtitlenode.appendChild(newtext);
var headnode = document.getElementsByTagName("head").item(0);
var oldtitlenode = document.getElementsByTagName("title").item(0);
headnode.replaceChild(newtitlenode,oldtitlenode);
headnode = document.getElementsByTagName("head").item(0);
How can I get the changed title to display?
I'm running NN 7.1.