I am trying to set up a standard MM_jumpMenu in the top frame of a frameset and want the menu selections to appear
in the 'MAIN' or bottom window of the frameset. I can use
self and parent target names , but when I replace them with
'MAIN' , I get error 'MAIN' not defined .
Main is defined in the frameset page , but the top window
containing the javascript , obviously cant see it ,
I know the answer must be simple but I cant work it out.
script below , Thanks.
<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>
<FONT face="Arial, Helvetica, sans-serif" size=1>
<SELECT onchange="MM_jumpMenu('self',this,0)" name=menu1>
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/01.htm>menu item 1</OPTION>
<OPTION value=02.htm>menu item 2</OPTION>
----------menu options continued etc---------
</SELECT>
in the 'MAIN' or bottom window of the frameset. I can use
self and parent target names , but when I replace them with
'MAIN' , I get error 'MAIN' not defined .
Main is defined in the frameset page , but the top window
containing the javascript , obviously cant see it ,
I know the answer must be simple but I cant work it out.
script below , Thanks.
<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>
<FONT face="Arial, Helvetica, sans-serif" size=1>
<SELECT onchange="MM_jumpMenu('self',this,0)" name=menu1>
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/01.htm>menu item 1</OPTION>
<OPTION value=02.htm>menu item 2</OPTION>
----------menu options continued etc---------
</SELECT>