Forum Moderators: phranque

Message Too Old, No Replies

drop down search box

drop down search box

         

ldsweb

2:05 pm on Jul 23, 2004 (gmt 0)

10+ Year Member



I am creating a drop down box and what I cant figure out is how to link each content in the box to the page it needs to go to. Can anyone help me. I am using front page to do this with.

Thank you in advance

Alternative Future

2:13 pm on Jul 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi ldsweb,

Is it something like this you are looking for?

<select name="nav" onChange="go()">
<option>Please Select</option
<option value="here.html">First Page</option>
<option value="there.html">Second Page</option
</select>

function go(){
box = document.forms[0].nav;
destination = box.options[box.selectedIndex].value;
if (destination) location.href = destination;
}

HTH,

-George

ldsweb

2:16 pm on Jul 23, 2004 (gmt 0)

10+ Year Member



Thank you
I beleive it is.