javascript : sending custom parameters with window.open() but its not working
<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script&gt;
function open_win()
{
    window.open("http://localhost:8080/login","mywindow")
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;input type="button" value="Open Window" onclick="open_win()"&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Hi , </p>

<p>On click of a button , i am opening a <code>new website</code> (My web site )
I have two <code>text fields</code> ( One Text Field and another Password Field) , i am trying to send this values to the other opened window . </p>

<p>But its not working as I want.</p>

<p>I have tried the following  ways </p>

<pre><code>1.  window.open("http://localhost:8080/login?cid='username'&amp;pwd='password'","mywindow")

2.  window.open("http://localhost:8080/login","mywindow")
    mywindow.getElementById('cid').value='MyUsername'
    mywindow.getElementById('pwd').value='mypassword'
</code></pre>

<p>Could anybody please help me if this is possible or not ??</p>

<p>Sorry for the incomplete details , its a Post request . </p>
