Consultor Eletrônico



Kbase 19117: Javascript: Using a combo-box and button with URL's
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/9/1999
Javascript: Using a combo-box and button with URL's


Knowledge Base number:19117
This document applies to:Webspeed
Version and Release Number:2.0,2.1,3.0

SUMMARY:
This javascript example will show you how to code a combo box to
hold URL's and have the button run the selected URL.

STEP BY STEP DETAILS:

Create a new blank HTML file and have the following code:
<html><head><title>Drop Down Menu Example</title></head><P ALIGN=Cente
r>
<form name="gotolocation">
<SELECT name="dropdown" size=1>
<option selected value="0">--Select Location-- </option>
<option value="http://www.progress.com">Progress</option>

<option value="http://www.progress.com/services/support/support.hml">
TechSupport Direct</option>
</SELECT>
<INPUT type="button" onClick="location = document.gotolocation.drop
down.options[document.gotoloation.dropdown.selectedindex].value;"
value="Goto URL">

</FORM>
</CENTER>
<body>
</body>
</html>