Hi there,
i guess this is what you want (old popup is closed from parent-side
if new popup is desired):
Javascript:
<script type="text/javascript">
var currentPopup = null;
function popitup(url)
{
if (currentPopup && currentPopup.open && !currentPopup.closed) {
currentPopup.close();
}
currentPopup = window.open(url, 'name', 'height=200,width=150');
if (window.focus)
{
currentPopup.focus()
}
return false; }
</script>
Html:
<a href="#" onclick="return popitup('test.htm')">Link1</a>
<a href="#" onclick="return popitup('test.htm')">Link2</a>