You are here: irt.org | FAQ | JavaScript | Window | Q845 [ previous next ]
In the main window:
<script language="JavaScript"><!-- popup = window.open('popup.htm','windowName','width=100,height=100'); if (!popup.opener) popup.opener = self; //--></script>
In popup.htm:
<script language="JavaScript"><!-- function supressError() { return true; } function load(url) { window.onerror = supressError; opener.location.href = url; setTimeout('self.close()',1000); } //--></script> <a href="javascript:load('http://www.irt.org')">text link</a>