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

Link fro a form

Status
Not open for further replies.

cshack

Technical User
Mar 20, 2001
52
GB
Hello,
I'm trying to find out how to link from a dropdown menu.
I can insert the dropdown menu but i'm not sure how to link to the selected page when someone scrolls down and clicks on an item from the list.
I've tried putting pagename.html in the list value next to the item in the list, but no joy.
Would I need a "go" button next to the dropdown?

Thanks in advance.
 
You can do this:

<script language=javascript>
function goTo(url){
location = url;
}
</script>

<select name=changeLocation onChange=&quot;goTo(this.value);&quot;>
<option value=none>SELECT LOCATION</option>
<option value=&quot; <option value=&quot;</select>

:)
Paul Prewett
penny.gif
penny.gif
 
Hello cshack!

If you are really using DreamWeaver - use completely its potential !

To get what you need you should do next:
1) create form (Insert > Form);
2) create dropdown menu object (Insert > Form Objects > Jump Menu);
3) fill out all necessary fields in the dialog window;
4) test it;
5) enjoy it.

If you already have dropdown menu:
1) select it;
2) open Behaviors window (Window > Behaviors);
3) select &quot;Jump Menu&quot; behavior (Plus Sign + > Jump Menu);
4) see steps 3 to 5 above;

If you want to use Go button:
1) in first example - check &quot;Insert Go Button After Menu&quot; option;
2) in second example - select &quot;Jump Menu Go&quot; behavior instead of &quot;Jump Menu&quot;.

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top