title: Html and JavaScript result flash and goes of immediately what could be the problem
body: <p><strong>Html</strong></p>
  <pre><code>    &lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset=&quot;utf-8&quot;&gt;
          &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;meta name=&quot;description&quot; content=&quot;&quot;&gt;
          &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
          &lt;link rel=&quot;stylesheet&quot; href=&quot;&quot;&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt; Welcome to Benjamin's bank. Have some Money&lt;/h1&gt;
          &lt;p&gt;Please enter your name, password and the amount you want to withdraw&lt;/p&gt;
          &lt;form action=&quot;&quot; method=&quot;post&quot;&gt;
              &lt;input type=&quot;text&quot; value=&quot;name&quot; id=&quot;name&quot;&gt;&lt;br&gt;
              &lt;input type=&quot;password&quot; value=&quot;password&quot; id=&quot;password&quot;&gt;&lt;br&gt;
              &lt;input type=&quot;text&quot; value=&quot;amount&quot; id=&quot;amount&quot;&gt;&lt;br&gt;
              &lt;button onclick=&quot;withdraw()&quot;&gt;click me&lt;/button&gt;
          &lt;/form&gt;
          &lt;p id=&quot;para&quot;&gt;&lt;/p&gt;
          
          &lt;script src=&quot;Beginners_bank.js&quot; async defer&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p><strong>Javascript</strong></p>
  <pre><code>    function withdraw(){
      var namevar= document.getElementById(&quot;name&quot;).value;
      var passwordvar=document.getElementById(&quot;password&quot;).value;
      var amountvar=document.getElementById(&quot;amount&quot;).value;
      var Amount=3000;
      var name=&quot;Benjamin Anoruo&quot;;
      var pass=&quot;testing123&quot;;
      var n=Amount-amountvar;
      if(namevar==name &amp;&amp; passwordvar==pass ){
          if(amountvar&lt;=Amount){
              document.getElementById(&quot;para&quot;).innerHTML=&quot;your withdrawal was successful. your new balance is:&quot;+n;
              document.body.style.backgroundColor='green';
          }
      }
  }
  </code></pre>
  <p>This code is supposed to take users name password and amount they want to withdraw.anytime I enter every detail and click the button it just flashes the output and return an empty form
  Please how can I fix this issue.</p>