PDA

View Full Version : Taget Changing with MM_jumpMenu


Golden_Eagle
11-05-2002, 09:58 AM
<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>

This piece of code is seems to overwrite my site using, maybe, the _top target or equivelant target javascript.

How can I edit this code so the link stays within the frame the menu is in?

For more info on my problem - check this link. This is here the problem is located. (View > Source.)

glenngv
11-05-2002, 10:07 AM
<script language="JavaScript">
<!--
function MM_jumpMenu(selObj,restore){ //v3.0
location.href=selObj.options[selObj.selectedIndex].value;
if (restore) selObj.selectedIndex=0;
}
//-->
<script>


you can use either location.href or just location