SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Jujubee's Avatar
    Join Date
    Mar 2001
    Location
    Canada
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    REFERER in a Javascript popup is not set?

    I'm try to get the referrer in a popup.

    I call the window via

    onClick="window.open ('feedback.htm')"

    for the referer I use

    window.referer

    Everything works fine if I open feedback.htm in a plain window, but the referer is blank when I use the "window.open" method.

    I even put a link within feddback.htm to call itself. After I click the the referer appears in the popup window. Don't understand why it doesn't appear when the window is first opened.

    Thanks for the help!

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    opener is a link to the parent window, so to get the initial referer look at opener.location.href

  3. #3
    SitePoint Enthusiast Jujubee's Avatar
    Join Date
    Mar 2001
    Location
    Canada
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks - that worked!


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
  •