title: how to convert javascript code to html code
body: <p>i got this code that i want to make work in tumblr but that is html code and this is javascript? i am a noob maybe someone can help me out here.</p>
  <pre><code>&lt;pre&gt;&lt;code&gt;
  
  
  var total = 0;
  
  function adder() {
    var num1 = parseInt(document.getElementById(&quot;myform&quot;).elements[&quot;num1&quot;].value);
    var num2 = parseInt(document.getElementById(&quot;myform&quot;).elements[&quot;num2&quot;].value);
    total += num1 + num2;
    document.getElementById(&quot;p1&quot;).innerHTML = total;
    if (total &gt; 100) console.log(&quot;It's over!&quot;);
  }`
  
  
  
  
  
  
  
  
  
  &lt;form id=&quot;myform&quot;&gt;
    First Number: &lt;input type=&quot;text&quot; name=&quot;num1&quot;&gt;&lt;br /&gt;&lt;br /&gt; Second Number: &lt;input type=&quot;text&quot; name=&quot;num2&quot;&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;/form&gt;
  &lt;button onclick=&quot;adder()&quot;&gt; Submit&lt;/button&gt;&lt;br&gt;&lt;br&gt;
  &lt;p id=&quot;p1&quot;&gt;Results Are Here&lt;/p&gt;
  
  &lt;/code&gt;&lt;/pre&gt;
  </code></pre>