Need Help ASAP!

by 3 replies
4
I am launching my first product tomorrow but I can not find out how to get an exit redirect script on my salespage to go to my downsell page after the person clicks exit. Does anyone know how to put an exit redirect script on a page that does not interfere with the purchase button?
#programming #asap
  • I was looking online and I found this script.

    <script type="text/javascript">
    function addEvent(obj, evt, fn) {
    if (obj.addEventListener) {
    obj.addEventListener(evt, fn, false);
    }
    else if (obj.attachEvent) {
    obj.attachEvent("on" + evt, fn);
    }
    }
    addEvent(window,"load",function(e) {
    addEvent(document, "mouseout", function(e) {
    e = e ? e : window.event;
    var from = e.relatedTarget || e.toElement;
    if (!from || from.nodeName == "HTML") {
    // stop your drag event here
    // for now we can just use an alert
    //alert("left window");
    window.location = "http://newstrategiesforwealth.com/wp-wealth-creation-frontend-downsell/"
    }
    });
    });
    </script>


    I put it up on my site and it works pretty good maybe even too good. Soon as you move towards the exit button it redirects. I didn't know if this is too abrupt for what I was looking for. I like those messages that give you a chance to cancel or go to the link. I was wondering was it possible to put my link for example purposes to get some feedback.

    Nevermind I think this will work out alright for now too many others things to get done. Hopefully this information can be useful to someone else.
  • When a user tries to exit your page they will be automatically redirected with JS to a sales page? Good luck with that strategy champ...
    • [1] reply
    • So what are you saying really? I am giving them an opportunity to get it for less in case money was the issue on the front page. Do you know how to do an exit redirect?

Next Topics on Trending Feed

  • 4

    I am launching my first product tomorrow but I can not find out how to get an exit redirect script on my salespage to go to my downsell page after the person clicks exit. Does anyone know how to put an exit redirect script on a page that does not interfere with the purchase button?