I have a parent window that opens up a child window with a list of links. The child window needs to stay on the same page and when the links are clicked only affecting the parent window. Right now both of the windows are changing and I just need the parent to.
here is the parent window code: pop-up.php
and the child window code: pop-up1.php
Thanks for any input you have!!!
here is the parent window code: pop-up.php
Code:
<body> <a href="javascript:void(0);" NAME="My Window Name" title=" My title here " onClick=window.open("pop-up1.php","Ratting","width=550,height=170,0,status=0,");>Click here to open the child window</a> </body>
Code:
<head> <script type="text/javascript"> function openparent (url) { if (window.opener &&!window.opener.closed){ window.opener.location = url; } } </script> </head> <body> <a href="green.php" onclick="openparent(this.href)"> a</a> <br /> <a href="index.php" onclick="openparent(this.href)"> 3</a> </body>
Comment