Monday, September 13, 2010

A little learned, a little desired

You can't use jQuery to dynamically set the title of your web page, even though the syntax (and the documentation) would lead you to believe that you could. I spent about an hour today tracking this one down, before coming across this gem.

Instead of saying: $('title').html('My new page title'); what you really want to do is go back to simple javascript: document.tile = 'My new page title';

To really put a wrench in the whole matter, the jQuery call works in Firefox and Safari, but not in IE.