Forums

This topic is locked

advanced popup

Posted 14 Mar 2007 14:11:57
1
has voted
14 Mar 2007 14:11:57 chris walker posted:
I remember once reading somewhere how to make a popup window thta can control the main window. I just want to know if anyone here knows how to make a popup that you can open, and has a bunch of links, but when you click the link, it opens the page in the main window... i hope you understand, and i hope you can help
thanks

Replies

Replied 14 Mar 2007 15:09:08
14 Mar 2007 15:09:08 Lee Diggins replied:
Hi Chris

Main Page:
<pre id=code><font face=courier size=2 id=code>&lt;body&gt;
&lt;p&gt;&lt;a href="#" onClick="window.open('mypopupwebpage.htm','popup1','width=200,height=200')"&gt;Open Popup&lt;/a&gt;&lt;/p&gt;
&lt;/body&gt; </font id=code></pre id=code>

Popup Page:
<pre id=code><font face=courier size=2 id=code>&lt;body&gt;
&lt;p&gt;&lt;a href="#" onClick="top.opener.location.href = 'www.microsoft.com'"&gt;Open in parent window&lt;/a&gt;&lt;/p&gt;
&lt;/body&gt;
</font id=code></pre id=code>

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
&lt;font size="1"&gt;[ Studio MX/MX2004 | ASP -&gt; VBScript/PerlScript/JavaScript | SQL | CSS ]&lt;/font&gt;

Edited by - Digga the Wolf on 14 Mar 2007 15:11:35

Reply to this topic