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

Q1114 How can I create a popup window where the user can select which link they would like to go to and have the page load in one frame on the main window, and then close the popup window?

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

Q1114 How can I create a popup window where the user can select which link they would like to go to and have the page load in one frame on the main window, and then close the popup window?

In the frame in the parent window:

<script language="JavaScript"><!--
WinId = window.open('links.html','linkswindow','width=300,height=400');
if (!WinId.opener) WinId.opener=self;
//--></script>

In the links.hmtl:

<a href="javascript:opener.location = 'http://www.netscape.com'; self.close()">Netscape</a>
<a href="javascript:opener.location = 'http://www.microsoft.com'; self.close()">Microsoft</a>

Feedback on 'Q1114 How can I create a popup window where the user can select which link they would like to go to and have the page load in one frame on the main window, and then close the popup 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.