Results 1 to 1 of 1

Thread: Want to close a popup and open the link in main window

  1. #1
    Join Date
    Aug 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Want to close a popup and open the link in main window

    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:

    Code:
    $answer4 = '<a href="./'.$scripts['answer4_url'].'?npc_id='.$npcs['id'].'&script='.$script_id.'&in_npc=1" target="_blank">'.$answer4_text.'</a>';
    Last edited by egdcltd; 04-04-2008 at 07:14 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •