Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q417 How do I link from the main window to a named link within a frame within a pop up window?

irt.org | Knowledge Base | JavaScript | Window | Q417 [ previous next ]

Q417 How do I link from the main window to a named link within a frame within a pop up window?

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

Feedback on 'Q417 How do I link from the main window to a named link within a frame within a pop up window?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.