Forums

This topic is locked

Advanced Open Window 2.0 question

Posted 06 Apr 2002 20:12:20
1
has voted
06 Apr 2002 20:12:20 Hank Tan-Tenn posted:
Hi,

I use George's very nice DW/UD JS behavior to do pop-ups. Lately I've wanted to load a new page into the main window from a link in the pop-up. I tried the following without success (being fairly ignorant in JS doesn't help).

Any hints appreciated.

<pre id=code><font face=courier size=2 id=code>
&lt;SCRIPT language="JavaScript"&gt;&lt;!--
function load(file,target) {
if (target != '')
<font color=red>target.window.location.href = file;</font id=red>
else
window.location.href = file;
}
//--&gt;
&lt;/SCRIPT&gt;
</font id=code></pre id=code>

Edited by - akc on 06 Apr 2002 20:13:47

Reply to this topic