title: How to HTTP Request a URL in JavaScript?
body: <p>In the below code I need to execute the <code>newUrl</code>:</p>
  
  <pre><code>&lt;SCRIPT type="text/javascript"&gt;
      function callMyAction(){
      var newUrl = '/makeObtained.action';
      //here I need to execute the newUrl i.e. call it remote
      //it will return nothing. it just starts server process
      }
  &lt;/SCRIPT&gt;
  
  &lt;a onclick="callMyAction()" href='...'&gt; ...&lt;/a&gt;
  </code></pre>
  
  <p>How to make it?</p>