how to assigning values for child window?
<pre><code>var selwindow = window.open('child1.html','_blank','resizable=yes,width='+(screen.width-500)+',height='+(screen.height-500)+'');
selwindow.document.selectform.childText.value=document.getElementById('pdetails1').value;
</code></pre>

<p>I am using this code to assign a value for textbox in the child window. It works well in Internet Explorer, but it shows an error when run in Firefox. It shows:  <code>selwindow.document.selectform is undefined</code>.</p>

<p>Here,  <code>childText</code> is the current window textbox id, and <code>pdetails1</code> is the child window text box id</p>
