Click to See Complete Forum and Search --> : Frustrated with frames!


mereichertz
03-27-2003, 02:28 PM
I'm a relatively new javascript user (so be nice) and I have a situation I can't figure out.

I have links in a dropdown menu that link from a company intranet site to several internet sites.

The problem is that the site that this dropdown menu resides on is a frames site and the links open the internet sites in the main frame of the frame set and not in a new browser session the way I would like them to.

This is the generic code I'm using to control the dropdowns - what am I missing?

<!-- function functionName() { location.href = formName.listName.options formName.listName.selectedIndex].value } // -->

Thanks!

Jona
03-27-2003, 02:41 PM
function functionName(){
location.href = window.parentFrameName.formName.selectboxName[window.parentFrameName.formName.selectboxName.options.selectedIndex].value;
}

That should all go on one line...