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>
<SCRIPT language="JavaScript"><!--
function load(file,target) {
if (target != '')
<font color=red>target.window.location.href = file;</font id=red>
else
window.location.href = file;
}
//-->
</SCRIPT>
</font id=code></pre id=code>
Edited by - akc on 06 Apr 2002 20:13:47