open new window with javascript and send POST parameters
<p>I would like to open a new window with javascript and pass POST parameters to it. I've tried a lot of things. </p>

<p>My latest code looks like this so far, but not working (I haven't tried to pass post parameters but after it will work I can only add hidden input to make it work. I guess.):</p>

<pre><code>&lt;form method="POST" name="showgraph" onsubmit="javascript:window.open('graph.php', 'Graph', 'scrollbars=yes,titlebar=no,top=300,left=400');" action="javascript:void(0)"&gt;
&lt;a href="#" onClick="document.showgraph.submit();"&gt;Show graph&lt;/a&gt;
&lt;/form&gt;
</code></pre>
