Need some help asap

Discussion in 'JavaScript' started by overdrive, Oct 11, 2007.

  1. #1
    I have a website that I need to put in some javascript that I got from Shopping.com. It is supposed to open a window with a survey in it. The issue is that I do not want it to open unless the visitor is referred by Shopping.com. The code is on my order confirmation page and will pop up anytime an order goes through. Is there a way to put something in the code or around it to make it only come up if the visitor is referred by Shopping.com. Cookies are already enabled so that is not an issue. Here is the code:

    <script type="text/javascript" language="JavaScript"
    src="https://www.shopping.com/xMSJ?pt=js&mid=440265&lid=1"></script>
     
    overdrive, Oct 11, 2007 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    Did you try using document.referrer ?
     
    it career, Oct 12, 2007 IP