SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot TCJeter's Avatar
    Join Date
    Jun 2002
    Location
    Anchorage, AK
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Popup with remote function (send URL & close)...

    Quick question about popups with a remote...

    I currently this little function for send a URL to the window that my popup was generated from:
    Code:
    function remote2(url){
    window.opener.location=url
    }
    This will send the URL to the window that generated the popup, with this link:
    Code:
    <a href="java_script_:remote2(place URL here)">
    .

    What I would like to do is close the popup at the same time. Would that be included in the 'onClick' function or should it be an 'onRelease' event....not sure how to achieve both at once.

    Thanks,
    -TC

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi TC
    Code:
    function remote2(url)
    {
      window.opener.location=url;
      window.close();
    }

  3. #3
    SitePoint Zealot TCJeter's Avatar
    Join Date
    Jun 2002
    Location
    Anchorage, AK
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Badda-boom, badda-bing. That was quick!

    Thanks for helping with my learning curve, Mike!

    -TC


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
  •