/    Sign up×
Community /Pin to ProfileBookmark

form opening website from ddl

I am building a webpage and can’t seem to find an easy way to do something that should be easy.

I have a drop down list and a “go to website” button. I have the option values set to a URL. When a user selects a value in the drop down list, and clicks on the go to website button, I would like the corresponding URL from the ddl to launch in a new IE window. What’s an easy way to do this?

TIA,
GH77

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@ray326Feb 27.2006 — It'll take Javascript -- window.open().
Copy linkTweet thisAlerts:
@grasshopper77authorMar 02.2006 — could you elaborate on how to accomplish this? I don't mind sharing my html if that helps.
Copy linkTweet thisAlerts:
@ray326Mar 03.2006 — It's basically a Javascript question so I'd recommend you ask there.
Copy linkTweet thisAlerts:
@hardcore_webMar 03.2006 — go to www.web-source.net then Javascripts or HTML TIPS ...

hope that helps
Copy linkTweet thisAlerts:
@bathurst_guyMar 03.2006 — *Please don't use stuff from web-source^
<select name="urls" id="urls">
<option value="www.google.com">Google</option>
<option value="www.webdeveloper.com">WebDeveloper</option>
<option value="www.sdstudio.com.au">Simply Design Studio</option>
</select>
<input type="button" onclick="window.open(document.getElementById('urls').value)" value="Go">
Copy linkTweet thisAlerts:
@hardcore_webMar 03.2006 — why not? can i ask...i think I may know the answer
Copy linkTweet thisAlerts:
@bathurst_guyMar 03.2006 — They use out of date and incorrect code.
×

Success!

Help @grasshopper77 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,
)...