Associate
- Joined
- 3 Aug 2004
- Posts
- 1,614
- Location
- Bendigo, Australia.
Can anyone please help me with a popup function? I have the popup open fine but when the link within the popup is selected, the original browser window navigates away and displays the new page instead.
What I would like to do if possible, is the have the link in the popup open a new browser tab/window, leaving the original parent page open.
This is the script from the head of the popup:
This is the link:
Any help would be appreciated, thanks.
What I would like to do if possible, is the have the link in the popup open a new browser tab/window, leaving the original parent page open.
This is the script from the head of the popup:
Code:
<SCRIPT TYPE="text/javascript">
<!--
function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}
//-->
</SCRIPT>
Code:
<p>For questions regarding the installation of ICQ, you can try
<a href="http://www.icq.com/help/help_choose_cat.php"
onClick="return targetopener(this,true)">browse the ICQ Knowledgbase</a>.</p>