Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
Using JavaScript with WebSpeed : Some JavaScript examples : A combo box with URL buttons
 

A combo box with URL buttons

This example shows you how to code a combo box to hold URLs. When the user clicks on the button, the browser goes to the Web site specified in the URL:
<FORM>
  <SELECT SIZE="1"
    onChange="(this[selectedIndex].value ?
               location=this[selectedIndex].value : null)">
    <OPTION SELECTED>Select Location
    <OPTION VALUE="http://www.progress.com">Progress
    <OPTION VALUE="http://www.progress.com/services/support">Tech Support
    <OPTION VALUE="http://www.webspeed.com">WebSpeed
  </SELECT>
</FORM>