> > 
> > You can't change the title tag's innerHTML once the tag
> > has been encountered in the HTML code. This isn't a
> > jQuery limitation; it's a browser limitation.
> > I don't know if it is true for every browser, but it is for 
> > the ones I tested when I implemented dynamic titles a
> > while ago.

> From: Klaus Hartl
> innerHTML won't work, just use
> 
> document.title = 'foo';
> 
> :-)

> From: Mike Alsup
> 
> You can do this in FF and IE:
> 
> document.title = 'my new title';

Ah, call me stupid. Sorry about the misinformation. I should know better
than to post before I've had breakfast! :-)

I wasn't completely dreaming! The situation I was talking about was one
where I had needed to use document.writeln in the HEAD for other reasons,
and I found when I attempted to write a title tag to a document that already
had one it didn't work. The browser only used the first title tag and
ignored the second. But of course you can use document.title once the DOM is
ready...

-Mike


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to