title: build an html title tag dynamically with javascript
body: <p>I have many pages on a site im developing, in which each page has its own title tag. In many cases the titles have constant text, for example: </p>
  
  <p>Home | Section 1 | Page 1<br />
  Home | Section 1 | Page 2<br />
  Home | Section 1 | Page 3, etc...<br /></p>
  
  <p>Inserting these titles makes for harder changes later on, not to mention the hassle of remembering to add them. I'm looking to find a method of dynamically generating the title of each page with javascript, based off the location of the page within the folder structure of the site.</p>
  
  <p>Im currently using a script that does something like this for breadcrumbs, but am not sure how to either reference the same script, or build a similar one for page titles. The breadcrumb script is here: <a href="http://trcreative.us/dev/jmsracing/js/breadcrumbs.js" rel="nofollow">http://trcreative.us/dev/jmsracing/js/breadcrumbs.js</a> </p>
  
  <p>and for the most part doing exactly what I need for titles, minus links per each breadcrumb item. (I don't want it to do that for title's obviously). </p>
  
  <p>See breadcrumbs applied here: <a href="http://trcreative.us/dev/jmsracing/races/pigman-long-and-olympic/" rel="nofollow">http://trcreative.us/dev/jmsracing/races/pigman-long-and-olympic/</a></p>
  
  <p>Any help would be appreciated. Thank you </p>