post method in javascript
<p>How i can pass the value from javascript post method from one page (home.aspx) to another page(post.aspx) which needs to open in new window using window.open method .?
My code below:this javascript function called in button click event.</p>

<pre><code>function postwith () {
  var myForm = document.createElement("form");
  myForm.method="post" ;
  myForm.action = post.aspx ;
    var myInput = document.createElement("input") ;
    myInput.setAttribute("name", 'user');

    myForm.appendChild(myInput) ;

  document.body.appendChild(myForm) ;
  myForm.submit() ;
  document.body.removeChild(myForm) ;
}


&lt;asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="postwith();"/&gt;
</code></pre>

<p>I want access the value (user) in page load event of post.aspx pge and this page should open in new window.</p>
