/    Sign up×
Community /Pin to ProfileBookmark

Linked Drop Down Boxes

Hi,

How (if possible) can I make selections link to another page or website using a simple drop down box? So for instance if someone clicked on volvo it would go to a volvo dealers website…

I’ve added the HTML for people to add their knowledge!

<html>
<body>

<form>
<select name=”cars”>
<option value=”volvo”>Volvo
<option value=”saab”>Saab
<option value=”fiat”>Fiat
<option value=”audi”>Audi
</select>
</form>

</body>
</html>

G

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@KeveyMay 31.2006 — Using javascript:

http://www.yourhtmlsource.com/javascript/scripts/dropdownlinkbox.html

And another method using html - you can add titles/doctype etc and make it validate ?

[CODE]<html lang="en-US">
<head>
</head>
<body>
<form method="get" action="http://www.google.com/url">
<select name="q">
<option value="http://www.cnn.com/">cnn dot com
<option value="http://web.mit.edu/">MIT Rocks
<option value="http://www.wustl.edu/">WU Who
<input type="submit"></form>
</body>
</html>[/CODE]
Copy linkTweet thisAlerts:
@kiwibritMay 31.2006 — From the [url=http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2]the w3c example[/url]. Thereafter it becomes a form handling matter. I tend to think radio buttons are more accessible, and friendlier - I'd be interested in comment on that, though.
×

Success!

Help @mastreblig spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...