1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How show popup only target referer visits?

Discussion in 'HTML & JavaScript' started by Joelton, Oct 29, 2015.

  1. Joelton

    Joelton Newbie

    Joined:
    Jul 11, 2014
    Messages:
    24
    Likes Received:
    0
    Hi, is possible in javascript show popup only target visits? For example: if visits comes of facebook, i show popup in page, if visits comes of google i not show popup.
    English is not my native language.

    Thanks in advance.
     
  2. mantic0re

    mantic0re Junior Member

    Joined:
    May 29, 2015
    Messages:
    118
    Likes Received:
    9
    I would recommend to check the referrer in PHP, store the value somewhere on the page and invoke your javascript once the page is loaded.