#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    1
    Rep Power
    0

    Need to open a servey page when a user leave site


    I need to open a servey page when a user leave site.I am doing this by opening a popup window using javascript function onbeforeunload. but there is problem that 90% of popup is blocked by browsers.is there any solution for it?
  2. #2
  3. A Not To Shabby Code Smurf
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Aug 2008
    Posts
    1,158
    Rep Power
    184
    Using pop-ups with that kind of event is done; you are going to have to go another route. Like offer a dhtml pop-up survey with your page (like maybe onload) or a more intrusive and more irritating way; is to use a confirm prompt onbeforeunload; to ask viewer, if they would like to take a survey.

IMN logo majestic logo threadwatch logo seochat tools logo