title: Javascript change h1 text not inner other html
body: <p>I am trying to change the text of <code>h1</code> tag but not other inner <code>html</code>. Here is my code</p>
  
  <pre><code>document.getElementById("wpbody-content").getElementsByClassName("wrap")[0].getElementsByTagName('h1')[0].innerHTML = 'Candidate Application Forms';
  </code></pre>
  
  <p>HTML code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="wpbody-content"&gt;
    &lt;div class="wrap"&gt;
      &lt;h1&gt;All Forms &lt;a class="title-action" href=""&gt;Add New&lt;/a&gt;&lt;/h1&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I need to change only <code>&lt;h1&gt;All Forms&lt;/h1&gt;</code> text not other inside the tag.</p>
  
  <p>I need to do it without <code>jQuery</code></p>