title: How do you change the <title> element with javascript?
body: <p>I have a HTML <code>&lt;title&gt;</code> element which I want to dynamically change depending on other elements. I tried using <code>document.getElementsByTagName('title').innerHTML = dynamicContent</code> but this did not seem to work. I have seen it done before, but I can't seem to figure out exactly how to do this.</p>