title: Output disappeared Javascript simple innerHTML
body: <p>I am new to javascript and on every simple thing i get some kind of problem but this seems un-solve-able to me. I googled and nothing simillar.</p>
  
  <p>After i input data into textbox and store it into variable, i print out variable in paragraph.
  Problem is that output i printed out disappears within less than second. Code seems to be normal, what might it be? It looks like c when you dont put getch();
   Thanks in advance.</p>
  
  <pre><code>&lt;form&gt;Unesite broj koji ce se ispisat kasnije.&lt;br&gt;
  &lt;input type="text" id="userInput"&gt;
  &lt;input type="submit" name="unos" value="Unesi i ispisi" onclick="unesi()"&gt;&lt;br&gt;&lt;br&gt;
  
  &lt;/form&gt; 
      &lt;br&gt;&lt;br&gt;
  &lt;p&gt;Unjeli ste &lt;b id="ispis"&gt;&lt;/b&gt;&lt;/p&gt;
  &lt;script&gt;
  function unesi(){
  var userInput = document.getElementById('userInput').value;
  document.getElementById('ispis').innerHTML = userInput;
  }   
  
  &lt;/script&gt;
  </code></pre>