How to open a new window from the child window
<p>From the main page I would like to open a child window and from the child window I would like to open a another window. how is it possible?
I have tried the below code and its not working.</p>

<pre><code>&lt;script type='text/javascript"&gt;
function click1(){
var win1=window.open();
win1.document.write("first window");
var windowHTML ='&lt;input type="button" value="click"   onclick="click2()" /&gt;';
win1.document.write(windowHTML); 
}    

function click2(){
 var win2=window.open();
 win2.document.write("seccond window");
}
</code></pre>

<p>​    </p>

<pre><code> &lt;input type="button" value="click1" onclick="click1()" /&gt;​
</code></pre>
