SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Aug 2002
    Posts
    385
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Implementation recommendation

    Hello I need recommendation on the following scenario:

    The basic idea is that I need to pop-up a survey form when a user abandons the shopping cart process. Abandonment includes the user closing the browser window while shopping, or going to another site (typing another URL in the browser address bar while shopping). So basically, I need to pop-up a survey form when the user decides not to complete the shopping up to the checkout.

    Let me know if your have ideas on what JS functions/events can I use to achieve this. Thanks.

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use the onunload event, the only issue with this is it will be fired every time you leave the current page, even if its to go to your own site.



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
  •