The following code is from an old file I found and am trying to use. It's for a multiple drop-down box menu. It works, mind you, but the variable only allows me to either open in a new window or in the same frame. I'm trying to get it to open up in the "main" frame. For instance, in the first drop down box, I click goto for Home, and am taken to the body.htm file, but it opens in the same frame instead of the main frame. I've tried doing a base target tag in the header, but no luck. Any ideas?
Code:
var onclickaction="goto"
var newwindow=1 //Open links in new window or not? 1=yes, 0=no.
addListGroup("chainedmenu", "First-Select");
addOption("First-Select", "Select an item", "", 1); //HEADER OPTION
addOption("First-Select", "Home", "body.htm", "Home");
addList("First-Select", "Algebra 1", "", "Alg");
addList("First-Select", "Geometery", "", "Geom");
addList("First-Select", "Links", "", "Links");