Link from a popup back to the main page

Discussion in 'JavaScript' started by LanceT, Apr 23, 2007.

  1. #1
    Alright so I have a link that creates a popup. In this popup there are several other links. I want it so that whenever someone clicks a link in this popup, the page will appear in the browser that the page originated from instead of in the browser of the popup.

    I'll try to explain a little better what I want

    page1.html has a link that opens popup.html
    popup.html has a link that is a fullsize page, so I want this link to display back in the browser window for page1.html instead of in the browser window for popup.html

    Hope you guys can point me in the right direction.
     
    LanceT, Apr 23, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
    <a href="somepage.html" onclick="document.opener.location = this.href; return false;">Link</a>
    
    HTML:
    Try this.
     
    nico_swd, Apr 24, 2007 IP