title: How to automatically show Title of the Entries/Articles in the Browser Title Bar in ExpressionEngine 2?
body: <p>How would I output the title of an entry in ExpressionEngine and display it in the browser's title bar?</p>
  
  <p>Here is the content of my page's header:</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;title&gt;Test Site&lt;/title&gt;
      &lt;link rel="stylesheet" href="{stylesheet=site/site_css}" type="text/css" media="screen" /&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>What I need is for each page to display the title of the entry in my browser's title bar &mdash; how can I achieve that?</p>
  
  <hr>
  
  <h2>Part of UPDATED Code:</h2>
  
  <p>Here is how i have done it :</p>
  
  <pre><code>{exp:channel:entries channel="news_articles" status="open|Featured Top Story|Top Story" limit="1" disable="member_data|trackbacks|pagination"}
  
  {embed="includes/document_header" page_title=" | {title}"}
  
  &lt;body class="home"&gt;
  &lt;div id="layoutWrapper"&gt;
      {embed="includes/masthead_navigation"}
      &lt;div id="content"&gt;
          &lt;div id="article"&gt;
              &lt;img src="{article_image}" alt="News Article Image" /&gt;
              &lt;h4&gt;{title}&lt;/h4&gt;
              &lt;h5&gt;&lt;span class="by"&gt;By&lt;/span&gt; {article_author}&lt;/h5&gt;
              &lt;p&gt;{entry_date format="%M %d, %Y"} -- Updated {gmt_edit_date format="%M %d, %Y"}&lt;/p&gt;                    
              {article_body}    
  {/exp:channel:entries}
          &lt;/div&gt;
  </code></pre>
  
  <p>What do you think?</p>