View Single Post
Old 07-02-2009, 02:11 PM   #2 (permalink)
jamiemac2005
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,886
OS: Vista, various linux distros


Re: HTML - Drop Down Menu Question

Hey, welcome to TSF. Something like this will work:

Code:
<select name="ComprehensiveList" onchange="if(this.options[this.selectedIndex].value != ''){window.open(this.options[this.selectedIndex].value)}">
	<option value="" selected="selected">&lt;select&gt;</option>
	<option value="www.whatever.com">Option1</option>
	<option value="www.whatever.com">Option2</option>
</select>
It just adds that if statement to check that there's a URL selected.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline   Reply With Quote