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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pulldown menus and framesets

Status
Not open for further replies.

markov

Programmer
May 10, 2001
5
GB
here is the code for my pulldown menu

<FORM NAME=&quot;pulldown1&quot;><SELECT NAME=&quot;e&quot; onChange=&quot;if(parent.whole){parent.whole.location.href = this.form.e.options[this.form.e.selectedIndex].value} else {location.href = this.form.e.options[this.form.e.selectedIndex].value}&quot; style=&quot;background-color:#444444 ; border-style:0; font-size: 10; color: #FFFFFF; font-family: verdana, arial, geneva&quot;>
<OPTION VALUE = 'home.html' SELECTED>Home
<OPTION VALUE = 'news.html' SELECTED>News

i am using this code on a page within a frameset. The problem is the links open in the same frame, how do i get the links to open in my other frame.

 
This should work...
Code:
<FORM NAME=&quot;pulldown1&quot;>
<FORM NAME=&quot;pulldown1&quot;><SELECT NAME=&quot;e&quot; onChange=&quot;parent.frames[1].location.href = document.pulldown1.e.options[document.pulldown1.e.selectedIndex].value&quot; style=&quot;background-color:#444444 ; border-style:0; font-size: 10; color: #FFFFFF; font-family: verdana, arial, geneva&quot;>
<OPTION VALUE = 'home.html' SELECTED>Home
<OPTION VALUE = 'news.html' SELECTED>News

Depending on your frameset, you might have to mess with the number in the 'frames[x]'
 
thanks alot for the response, it worked!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top