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

List Boxes and Frames

Status
Not open for further replies.

pmravdin

Programmer
Jul 10, 2002
9
US
We have a simple triplane frame and we are trying to get a scroll down box in the left frame to control things in the right frame.

Basically we are trying to get a list box in the left frame to call up html pages in the right frame.

We are obviously novices at this. Any help would be much appreciated.
 
This will make the links in a drop-down form:

<script>
<!--
function goto(choose){
var selected=choose.options[choose.selectedIndex].value;
if(selected != &quot;&quot;){
location.href=selected;
}
}
//-->
</script>
<SELECT onChange=&quot;goto(this);&quot;>
<option value=&quot;&quot;>--Jump to a page--</option>
<option value=&quot;page1.html&quot;>Page 1</option>
<option value=&quot;page2.html&quot;>Page 2</option>
<option value=&quot;page3.html&quot;>Page 3</option>
</SELECT>

This example will make the links in a list format:
<script>
<!--
function goto(choose){
var selected=choose.options[choose.selectedIndex].value;
if(selected != &quot;&quot;){
location.href=selected;
}
}
//-->
</script>
<SELECT onChange=&quot;goto(this);&quot;>
<option value=&quot;&quot;>--Jump to a page--</option>
<option value=&quot;page1.html&quot;>Page 1</option>
<option value=&quot;page2.html&quot;>Page 2</option>
<option value=&quot;page3.html&quot;>Page 3</option>
</SELECT>

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top