egdcltd
04-04-2008, 05:50 PM
Okay, what I have is a popup window. In the window are up to four links. Now, these links can all go to different URLs. What currently happens is when the link is clicked, a new tab opens in the popup window. What I want to happen is for the popup window to close, and the link replace the current main browser window.
I think the biggest problem is that the up to four links described are not fixed, but can vary.
EDIT: Here's how it's currently coded. It's from a PHP file:
$answer4 = '<a href="./'.$scripts['answer4_url'].'?npc_id='.$npcs['id'].'&script='.$script_id.'&in_npc=1" target="_blank">'.$answer4_text.'</a>';
I think the biggest problem is that the up to four links described are not fixed, but can vary.
EDIT: Here's how it's currently coded. It's from a PHP file:
$answer4 = '<a href="./'.$scripts['answer4_url'].'?npc_id='.$npcs['id'].'&script='.$script_id.'&in_npc=1" target="_blank">'.$answer4_text.'</a>';