jlsmithhartfiel
Programmer
Try this, notice I changed the select options values
Jessica ![[ponytails2] [ponytails2] [ponytails2]](/data/assets/smilies/ponytails2.gif)
Code:
function doThis(obj) {
// user already viewed one anchor so just replace the info
if (location.hash != "") {
location.hash = obj.options[obj.selectedIndex].value;
loc = parent.location
}
// user hasn't selected an anchor yet so add the hash mark
else {
loc = parent.location + "#" + obj.options[obj.selectedIndex].value;
}
parent.location = loc;
}
<select name="select1" size="140" length="3" onchange="doThis(this)">
<option VALUE="anchor1" SELECTED>Choice1
<option VALUE="anchor2" SELECTED>Choice2
<option VALUE="anchor3" SELECTED>Choice3
</select>
![[ponytails2] [ponytails2] [ponytails2]](/data/assets/smilies/ponytails2.gif)