title: How to Make a form not open a new window when it submits a url action?
body: <p>I have a form that submits a url action. However I don't want it to open up a new window with the url when it is submitted. How should I avoid this?</p>
  
  <pre><code>&lt;form name="leds" id="ledSend" method="get" target="_blank" action="https://agent.electricimp.com/Fk43xPMkSrWF"&gt;
  Lamp Control: &lt;input type="radio" name="led" value="0" checked&gt;Off
              &lt;input type="radio" name="led" value="1"&gt;On&lt;br&gt;
  How long should the Lights stay on? &lt;input type="text" name="timer" value="10"&gt;seconds&lt;br&gt;
  Your name? For Our Records &lt;input id="name" type="text" name="user" placeholder="Your name here"&gt;       &lt;br&gt;
  &lt;input type="submit" value="Update!" onclick="alert(theInput.value)"/&gt;
  &lt;script&gt;
  </code></pre>
  
  <p>var theInput = document.getElementById("name");
  </p>
  
  <p>I don't want this form to change windows to </p>
  
  <pre><code>https://agent.electricinp.com
  </code></pre>
  
  <p>When it is submitted. How would I avoid this so that the user stays on the original page where they submit the form form. </p>