title: How to pass data using submit() in javascript?
body: <p>I want to post data from one page to another using javascript post method?</p>
  
  <p>Below is the javascript I am using..</p>
  
  <p>In  <em>test1.asp</em> page </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function Service_Add(Data_ID,Data_Type)
  {
  var Data_ID=Data_ID;
  var Data_Type=Data_Type;
  
  document.miformulario.submit();// Here I want to pass data like "Submit(Data_ID,Data_Type)"
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to post "<code>Data_ID</code>" and "<code>Data_Type</code>" to <em>test2.asp</em> page</p>