You are here: irt.org | BBS | Re: Targeting frames with JS redirect [This BBS is closed]
Posted by anders gunnarsson on August 28, 1998 at 05:19:39:
In Reply to: Targeting frames with JS redirect posted by Brad on August 27, 1998 at 12:06:06:
: I have a page that utilizes three frames: top, left, Body. In top I have a drop down list box that I want to target the Body, but I keep getting the response that "dest is not a valid object". Can anyone help me figure out why I am unable to target the "Body" frame?
: e-mail address is fun4u@flash.net.
: This is my code.
: function leapto (form) {
: var myindex=form.dest.selectedIndex
: parent.Body.location.href= (form.dest.options[myindex].value);
: }
: // End -->
: </SCRIPT>
: </HEAD>
: <BODY>
: <CENTER>
: <FORM NAME="myform">
: <SELECT NAME="dest" SIZE=1 OnChange="leapto ()" >
: <OPTION SELECTED VALUE="test.html">Test
: <OPTION VALUE="test.html">Test
: <OPTION VALUE="test.html">Test
: <OPTION VALUE="test.html">Test
: </SELECT>
: </FORM>
:
: </BODY>
: </HTML>
: Thanks in advance for any help that may come.
: Brad
==========================================
I think both "top" and "body" is pretty bad names for frames.
eg. "parent.top" is the same as target="_top"...
you could might try writing "parent.frames['Body'].location"
Follow-ups:
You are here: irt.org | BBS | Re: Targeting frames with JS redirect [This BBS is closed]