title: Javascript - is it possible to change element innerHTML using a command similar to setAttribute
body: <p>I'm writing a function that allows users to change an element property to the value of their choice as follows:</p>
  <pre><code>&lt;button id = 'element_id'&gt;&lt;/button&gt;
  
  function change_attribute (attribute, value) {
      element = document.getElementById('element_id')
      element.setAttribute(attribute, value)
  }
  </code></pre>
  <p>This function works great when editing attributes such as value, id, class, ect... However, when I want to add text to the button such as test button, passing attribute = 'innerHTML', and value = 'Test Button' does not change the text displayed in the button. Am I changing the wrong property or is it not possible to edit the button text using setAttribute?</p>