Click to See Complete Forum and Search --> : jump down to same page


jleiker
04-10-2003, 10:02 AM
I can not figure out (or know if it can be done) how to do this:
This part works: Click on the link and it 'jumps' down to the section of SSDC.
This works:

<p><A HREF="#SSDC">SSDC</A> &nbsp; &nbsp;</p>

And then references this part of the page:
<p><font size="2"><A NAME="SSDC"></a>

However, instead of a link.... I want to be able to pick from a dropdown list and have it 'jump' down to the section of ssdc. I can't figure out how to do this?

<select name="menu1" onChange=<A HREF="#SSDC">

/A>
<option selected>SSDC</option>
<option>SSDC</option><A HREF="#SSDC">


</select>

can anyone help???

pyro
04-10-2003, 10:13 AM
Try coding it like this:

<html>
<head>
<script language="javascript" type="text/javascript">
function pulldown(frm)
{
window.location.href = frm.options[frm.selectedIndex].value;
}
</script>
</head>
<body>
<form name="myform">
<select name=menu SIZE=1 onChange="pulldown(this)">
<option value="">Go to....</option>
<option value="#test">test</option>
</select>
</form>
<a name="test">
test
</body>
</html>