SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    uk
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to show a survey when a visitor leaves my site? [was exit survey]

    while not directly .net related, i have a website (asp.net) and want to implement an exit survey.

    does anyone know the best way to launch these?

    ideally i want some code that would be able to launch the survey in a popup when users exit the site, either shutting browsser or clicking to another site.

    better still if it could be configured to not be every user... say every 10th for example?

    would this be done in .net code or is it just javascript to achieve this?

    any help appreciated...

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2008
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think what you're looking for is the client-side "onUnload" event.


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
  •