View Full Version : Option value tag problem.
I'm having problems making links with the <option value="url name"> code to other pages.
Would it need Javascript, a button or both?
boogyman
12-05-2007, 04:55 PM
what do you mean url name?
I would think you would do something like
<select name="webLink">
<option value="http://www.domain.com">Title</option>
<option value="http://www.domain.com">Title</option>
<option value="http://www.domain.com">Title</option>
</select>
that would select which link to go to, however you would need to process that somehow, which would either require javascript or some other scripting language as to how its going to result in your going to that link. If you wanted to follow the link once the user selects the title, you could do something like
<select name="webLink" onchange="javascript:window.open(this.value,newWin).focus();">
<option value="http://www.domain.com">Title</option>
<option value="http://www.domain.com">Title</option>
<option value="http://www.domain.com">Title</option>
</select>
note
this is untested so it may not work properly
I mean the "url name" part like a example.
Thanks, got it working now.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.