I am opening a pop up window by clicking a button
<input type="button" value="Button" onClick="window.open('popup.php','','width=500,height=400');">
This is called parent.php
So when I click button in parent.php, I get popup window called as "popup.php".
In popup.php, I will click any one of the hyperlink.
For example: <a href="parent.php">one</a>
<a href="parent.php">two</a>
<a href="parent.php">three</a>
So my problem is that the parent window is opening in same window.
So my questions is
1) After clicking the hyperlinks in popup.php, Popupwindow should be closed and this value should go to parent.php.
2)By doing this parent window values should not be altered. That is some text box values entered by user should remain same.
Thank you.