Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using frames in JavaScript

Status
Not open for further replies.

DoNotEven

Programmer
Dec 21, 2000
89
US
How do you make a window open in a frame with JavaScript. TARGET="HOME" does not work. My frame windows keep opening in the same frame my list box is in, I want them to open in the other frame window.

Here is the JavaScript I am using:
function showpage(form)
{ var item = form.list.selectedIndex;
choice = form.list.options[item].value;
if (choice=="fbi") { fbi(); } else
if (choice=="aff") { aff(); } else
if (choice=="com") { com(); } else
if (choice=="contest") { contest(); } else
if (choice=="kwd") { kwd(); } else
if (choice=="snake") { snake(); } else
if (choice!="x")
location.href=""+(choice);
};

The frame window I want it to open in is NAME=HOME which is the bottom window.
I am just using two frames.
The top frame has my list box in it which I want to stay there all the time. I want the selections made from the list box to open into the bottom frame. BUT they are opening in the list box frame, which is the top frame.

The if (choice=="") statements open popup windows and they work just fine.

 
Nah its not working properly is there a way I can use a flash made menu to work with this?
 
I have never used flash so cannot answer your question.
And as for myself I hate going to a web site that has flash on it. It slows my system WAY down so I leave pronto. I have been on a few web sites that use flash that worked pretty fast, but they never got real fansy with it.
Sorry,
Bob
 
Thanks for trying anyways, you were very quick at responding too, I'll put up your link ! Thankyou for your time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top