jump down to same page

admin

Administrator
Staff member
I can not figure out (or know if it can be done) how to do this:<br />
This part works: Click on the link and it 'jumps' down to the section of SSDC.<br />
This works:<br />
<br />
<p><A HREF=http://www.webdeveloper.com/forum/archive/index.php/"#SSDC">SSDC</A> &nbsp; &nbsp;</p> <br />
<br />
And then references this part of the page:<br />
<p><font size="2"><A NAME="SSDC"></a><br />
<br />
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?<br />
<br />
<select name="menu1" onChange=<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"#SSDC"><br />
<br />
/A><br />
<option selected>SSDC</option><br />
<option>SSDC</option><A HREF=http://www.webdeveloper.com/forum/archive/index.php/"#SSDC"><br />
<br />
<br />
</select><br />
<br />
can anyone help???<!--content-->Try coding it like this:<br />
<br />
<html><br />
<head><br />
<script language="javascript" type="text/javascript"><br />
function pulldown(frm) <br />
{<br />
window.location.href = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/frm.options">http://www.webdeveloper.com/forum/archi ... rm.options</a><!-- m -->[frm.selectedIndex].value;<br />
}<br />
</script><br />
</head><br />
<body><br />
<form name="myform"><br />
<select name=menu SIZE=1 onChange="pulldown(this)"><br />
<option value="">Go to....</option><br />
<option value="#test">test</option><br />
</select><br />
</form><br />
<a name="test"><br />
test<br />
</body><br />
</html><!--content-->
 
Back
Top