PDA

View Full Version : New window to load a page in the original


videotoys
11-12-2005, 01:05 PM
so here's what I need to do:

I have a link that opens a new window, I need to have links on that new window to load webpages in the original, I have tried a few things to no avail, but I know this has gotta be possible. any help is greatly appreciated! thanks

videotoys
11-12-2005, 01:24 PM
Heres how if you need to know too:

//Parent Page

<head>
<SCRIPT language="JavaScript">
<!--hide

function newwindow()
{
window.open('list.html','list');
}
//-->
</SCRIPT>
</head>

<body>
<a href="javascript:newwindow()">Listing</a>
</body>

// Child Page

<SCRIPT LANGUAGE="JavaScript">
<!--
function send(){
opener.document.location="index.html";
self.close();
}
//-->
</SCRIPT>
</head>
<body>

<a href="index.html" onclick="send()" >Open new listing on parent page</a>
</body>