hello i’m new to javascript and i was wondering if there was some way to alter this code that i got off [url]www.htmlgoodies.com
i’m sure you all have seen it but here is the code for it:
<SCRIPT LANGUAGE=”javascript”>
function LinkUp()
{
var number = document.DropDown.DDlinks.selectedIndex;
location.href = document.DropDown.DDlinks.options[number].value;
}
</SCRIPT>
<FORM NAME=”DropDown”>
<SELECT NAME=”DDlinks”>
<OPTION SELECTED>–> Choose a Link <–
<OPTION VALUE=”scripttip1.html”> Page One
<OPTION VALUE=”scripttip2.html”> Page Two
<OPTION VALUE=”scripttip3.html”> Page Three
</SELECT>
<INPUT TYPE=”BUTTON” VALUE=”Click to Go!” onClick=”LinkUp()”>
</FORM>
it works great but there is one problem, i’m using frames, the box is on the main frame and it loads to the main frame, i want it to either load up in a blank window or parent window.
if anybody can help me modify this code it would be greatly appriciated, thank you in advance.