You are here: irt.org | FAQ | JavaScript | Window | Q417 [ previous next ]
In the main window:
<script language="JavaScript"><!-- windowReference = window.open('page.htm','windowName','width=200,height=200'); function jump() { windowReference.frameName.location.href = 'page1.htm#anchorName'; } //--></script> <a href="javascript:jump()">link text</a>
In page.htm:
<frameset rows="50%,*"> <frame src="page1.htm" name="frameName"> <frame src="about:blank"> </frameset>
In page1.htm:
<p>A paragraph <p>A paragraph <a name="anchorName"></a> <p>Anchor point <p>A paragraph <p>A paragraph