I have a DW-inserted list box form on a non-frame page for which I want each link to open their URLs in a new window. But the default function behavior is to open them in same window. Can any kind soul inform me what edit I can make where to the following code to open each link in new window? I'm supposing the arg 'parent' needs replacing but I don't know DOM or JS worth diddly. MUCH thanks in advance!
~Scooter
=============================
Function declared in HEAD script:
<SCRIPT language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</SCRIPT>
Then function called from form:
<FORM name="form1">
<SELECT name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<OPTION selected>-- select --</OPTION>
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/"http://google.com">Google</OPTION>
etc...
~Scooter
=============================
Function declared in HEAD script:
<SCRIPT language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</SCRIPT>
Then function called from form:
<FORM name="form1">
<SELECT name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<OPTION selected>-- select --</OPTION>
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/"http://google.com">Google</OPTION>
etc...