The below takes me from a selection option on one page to another page (
thePage.cfm where it puts me in a specific part of the page using an anchor).
It works great in IE but Netscape 7 doesnt go to the anchor part of
thePage.cfm. It seems to only partially take me to the correct part of the page where it seems to go to high and only partially show the correct section. Please advise how I can correct it with NS7?
Code:
<script>
function goToOtherPage()
{
document.location.href=document.formName.myField[document.formName.myField.selectedIndex].value;
}
</script>
<form>
<select name = "myField" onchange="return goToOtherPage()">
<option value="thePage.cfm#foo"></option>
</form>
thePage.cfm:
Code:
<body>
<p>Info line one </p>
<p id="foo">Info part for anchor to go to. </p>
</body>