I have a main document that has several links throughout the text that a reader may click on to open other related sub-documents. The sub-docs are opened into their own much smaller window using href calls to a javascript function.
If clicking a link located deep within the main document, the sub-doc gets opened just fine, but the view of the main document relocates to the top. Thus, the reader would lose his/her place.
[B]Would you know how to maintain the location in the main document once a link is clicked?
[U][B]Sample HTML Links:
<p style=”text-indent: 1%”>
[INDENT]<a href=”#” onclick=”goHere(‘/docName1.html’, ‘Doc1’)” class=”linksimple”>How Scored</a>
[/INDENT]
[INDENT]<a href=”#” onclick=”goHere(‘/docName2.html’, ‘Doc2’)” class=”linksimple”>Strategy</a>
[/INDENT]
[INDENT]<a href=”#” onclick=”goHere(‘/docName3.html’, ‘Doc3’)” class=”linksimple”>Example Table</a>
[/INDENT]
</p>
[U][B]Sample of Script:
function goHere(here, name) {
window.open(here,name,”location=no, scrollbars=yes, toolbar= no, menubar=no, status=yes, resizable = yes, height=400, width=500″);
}