title: How can I clear a "innerHTML" with Javascript?
body: <p>I have this HTML:</p>
  
  <pre><code>&lt;div id = "options"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I access to this div trough this Javascript:</p>
  
  <pre><code>var test = "hola"; 
  document.getElementById('options').innerHTML= 
  &lt;p&gt;Test&lt;/p&gt; &lt;li&gt;${test}&lt;/li&gt;
  </code></pre>
  
  <p>And I have this button:</p>
  
  <pre><code>function click({
    document.getElementById("Click").addEventListener("click", function(){
    });
  };
  click();
  </code></pre>
  
  <p>I need that when that function called "click" is executed automatically that <code>&lt;li&gt;</code> can clean that value of the variable: "test" and it is seen empty.</p>
  
  <p>How can I do it? Thank you</p>