Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q227 How do you target links into a frame within a new windows opener?

You are here: irt.org | FAQ | JavaScript | Window | Q227 [ previous next ]

After making sure that the opener property is defined correctly after loading the new window. Then the contents of the new window should look something like this:

<html>
<head>
<script language="JavaScript"><!--
function go(url) {
    opener.parent.frameName.location.href = url;
}
//--></script>
</head>

<body>
<a href="javascript:go('apage.html')">load into the required frame of opener window</a>
</body>
</html>

Feedback on 'Q227 How do you target links into a frame within a new windows opener?'

©2018 Martin Webb