a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Hyperlink a drop down selection

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Hyperlink a drop down selection
Page: [1]
 
reillyg

 

Posts: 5
From: Falmouth, MA, USA
Status: offline

 
Hyperlink a drop down selection - 3/21/2001 13:16:00   
Can I hyperlink a drop down box selection.
Outfront uses a "Go" button. But I'd like to have a selection linked so that just by making a selection the link activates.

Thanks, Gerald

Thomas Brunt

 

Posts: 6118
Joined: 6/6/1998
From: St. Matthews SC USA
Status: offline

 
RE: Hyperlink a drop down selection - 3/21/2001 16:29:00   
<form name="AutoListBox">
<p><select name="ListBoxURL" size="1" language="javascript" onchange="gotoLink(this.form);">
<option value="URL#1.htm">Place 1 </option>
<option value="URL #2.htm">Place 2 </option>
<option value="URL#3.htm">Place 3 </option>
<option selected> -- Select to Jump -- </option>
</select></p>

The Function that makes it work :

<script language="JavaScript">
<!--
function gotoLink(form) {
var OptionIndex=form.ListBoxURL.selectedIndex;
parent.location = form.ListBoxURL.options[OptionIndex].value;}
//-->
</script>

</form>


Be sure to paste code examples into notepad and then copy/paste from notepad into FP html mode.


(in reply to reillyg)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> Hyperlink a drop down selection
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts