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

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

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

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

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?'


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.