title: Why does my html output disappear?
body: <p>The below code displays the "Test" only for the loading period of the page and then it disappears..please advise</p>
  
  <pre><code>&lt;input style="margin-left:40px;" type="submit" value="submit" name="submit" onclick="myFunction()"&gt;&lt;/input&gt;
  
  &lt;script&gt;
  function myFunction()
  {
  document.getElementById("div6").innerHTML="Test";
  }
  &lt;/script&gt;
  </code></pre>