changing the <title> tag?

changing the <title> tag?

I'm having fun changing items inside divs, spans, or anything else with a simple html() function: $("#somediv").html("text here");
But what about meta tags? I figured adding an ID to the title tag would work, but I was mistaken.

For example, I'm working on an online chat form. When someone receives a message, I'd like it to show in the title tag too, much like meebo. I've scoured the internet for this, but I've found nothing.

Has anyone done this before?