You are here: irt.org | FAQ | JavaScript | Window | Q213 [ previous next ]
<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>