View Single Post
Old 01-29-2007, 06:13 PM   #5 (permalink)
daraptor
Recruit
 
Join Date: Dec 2006
Posts: 14
daraptor is on a distinguished road
Quote:
Originally Posted by sde View Post
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>
</html>
hey buddy it is not workin man...do u know any other method to do that.......anyways thanx for the help
daraptor is offline   Reply With Quote