
December 15th, 1999, 04:22 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Yes you can, but only in IE4+ and NS3+ with the following JS-event
<SCRIPT LANGUAGE="JavaScript">
function getURL(form) {
// get the value of the selected option
var url = form.selURL.options[form.selURL.selectedIndex].value;
// go there
location.href = url;
</SCRIPT>
<FORM>
<SELECT NAME=selURL onChange="getURL(this.form);">
<OPTION VALUE="someURL">blah
<OPTION VALUE="otherURL">blahblah
</SELECT>
</FORM>
But to be sure everyone with older browsers can use it add a button (with other javascript you can hide it from showing in newer browsers, though)
Peter
|