title: How to add text to HTML element on web page using JavaScript DOM
body: <p>I need to add text to an element on the web page using only JavaScript (just started learning about DOM in my JS class). It is an h3 element, with the HTML code:</p>
  <pre><code>&lt;h3&gt;List of things we need to learn&lt;/h3&gt;
  </code></pre>
  <p>I need to change this to say &quot;List of things we need to learn about JavaScript&quot; when I load the page using only JavaScript. I've tried several different methods and none of them seem to work. One of the examples is:</p>
  <pre><code>var h3Add = document.getElementsByTagName('h3');
  document.h3Add.insertAdjacentHTML(&quot;beforeend&quot;, ' about JavaScript'); 
  </code></pre>
  <p>I used the code above, along with many others and am very frustrated. I think I can solve this by deleting the current h3 element and creating a new h3 element, but would rather do something more direct.</p>
  <p>TYIA</p>