How can I update the title of the tab in the same way GMail/Facebook does?
<p>Every time you receive a new email, or something happens on your Facebook profile, your browser tab's name changes. For example, on gmail, if you receive a new mail, it will change to something like <code>GMail (1)</code>. How can I get the same effect in my application? I think it's a Javascript thing, but I'm not sure.</p>
