powermix
Regular Member
- Aug 30, 2011
- 391
- 57
Hey,
I am trying to build a javascript code that can load on exit (when a user tries to exit either by closing the window or by going backwards).
The javascript popup is really simple.
I just need something where I can input a message and where I can give the user two options:
- Stay in the page
- Leave the page
When the person clicks on "Leave the page" I should be able to redirect them to the URL I want.
I have seen a lot of PopUps like these in affiliate landing pages offering coupons before the visitor leaves.
Hope you understand what I am looking for.
I am trying to build a javascript code that can load on exit (when a user tries to exit either by closing the window or by going backwards).
The javascript popup is really simple.
I just need something where I can input a message and where I can give the user two options:
- Stay in the page
- Leave the page
When the person clicks on "Leave the page" I should be able to redirect them to the URL I want.
I have seen a lot of PopUps like these in affiliate landing pages offering coupons before the visitor leaves.
Hope you understand what I am looking for.