closing the current popup and redirecting to the parent window
<p>In JS I am using :</p>

<pre><code>window.open('index.php?module=Contacts&amp;action=UD_lookupemailtemplates&amp;tempmode=userdefined&amp;temp_url='+encodeURIComponent(temp_php_url),'emailtemplate','top=100,left=200,height=400,width=500,resizable=yes,scrollbars=yes,menubar=no,addressbar=no,status=yes')
</code></pre>

<p>To open a small window which has few links.
Now on the click on any one link an id will be attached to the a url and then I used this :</p>

<pre><code>window.document.location.href = url;
</code></pre>

<p>This is also in JS. what this does is that it changes the contents of the small popup window but I need it to close the popup window and open this url in the main parent window from where the popup was created.<br> Is that possible ?</p>
