SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2001
    Location
    NJ
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need some help with a javascript - after doing a "openPopWin", how do I get a link to go back to the main window?

    Not actually a "close", lets say a link back to a registration page.

    thanks in advance for the help!

    Chris

  2. #2
    mouse monkey
    Join Date
    Dec 1999
    Location
    UK
    Posts
    656
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I am not sure if I entirely understand your question but if you want a link clicked in a popup window open in the parent window (the browser window where the popup was opened from) you firstly need to add this code into your parent window:

    Code:
    <script language="Javascript"> 
    <!--
    
    self.name="original"
    
    //--> 
    </script>
    Then in the popup window you would create a link tat opens in the parent window by:

    Code:
    <a href="somepage.htm" target="original">Link</a>
    I hope that is what you are looking for.


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
  •