|
Q213 How can I open a new links window and have the links opening in the main window?
irt.org | Knowledge Base | JavaScript | Window | Q213 [ previous next ]
Q213 How can I open a new links window and have the links opening in the main window?
<script language="JavaScript"><!--
function linkpage() {
msgWindow = window.open('','targetname','width=300,height=200');
msgWindow.location.href = 'mylinks.page';
if (msgWindow.opener == null) msgWindow.opener = self;
}
//-->/script>
<a href="javascript:linkpage()">Show my links page</a>
|
And then in the links page:
<script language="JavaScript"><!--
function showlink(url) {
opener.location.href = url;
}
//--></script>
<a href="javascript:showlink('http://www.somewhere.com/')">Go here</a>
|
Feedback on 'Q213 How can I open a new links window and have the links opening in the main window?'
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.