View Single Post
Old 01-29-2007, 12:52 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,476
sde is on a distinguished road
i think parent will refer to itself at the window level. there is a member named opener that will reference the window that launched the popup.

example: main.html
HTML Code:
<html>
<body>
	<a href="popup.html" target="_blank">Open Popup</a>
</body>
</html>
popup.html
HTML Code:
<html>
<head>
<script language="JavaScript" type="text/javascript">
function javascriptpenpopup(url)
{
	window.opener.location.href = url;
}
</script>
<body>
<a href="javascript:javascriptpenpopup('http://codenewbie.com/forum/');">Code Newbie</a><br />
<a href="javascript:javascriptpenpopup('http://php.net/');">PHP</a><br />
<a href="javascript:javascriptpenpopup('http://google.com/');">Google</a>
</body>
</html>
__________________
Mike
sde is offline   Reply With Quote