How to show auto-pop up form just before exit?

  • Profile Image
    izen
    Asked on September 11, 2013 at 04:01 AM

    I found your auto-pop up option quite interesting, as seen on this link...

    http://www.jotform.com/answers/225091-Auto-Popup-WordPress-Feedback-Button-Plugin

    Is it possible to auto pop up just when they try to close the browser/tab? That will be awesome :)

    I have seen sites which do this - when the mouse moves to the very top of webpage header area, (it's taken as a move to click the exit button on browser) this pop up at that moment would be great to collect a lead or present an offer. Any chance we can do this?

  • Profile Image
    jonathan
    Answered on September 11, 2013 at 09:43 AM

    Hi,

    You can probably do away with this using javascript code on your html page. 

    You need to catch the onunload event of the browser.

    Please try this page https://shots.jotform.com/jonathan/webtest/pop-up_form_on_browser_close.html

    When you close this page, the there should be a pop-up form.

    Make sure your browsers pop-up blocker allows it,

    Hope this help. Please inform us if it works.

    Thanks.

  • Profile Image
    izen
    Answered on September 14, 2013 at 10:36 AM

    Most new browsers block this type of pop-up by default - so sorry, but this doesn't help. Will wait for a better option. Thanks a lot.

  • Profile Image
    Cesar
    Answered on September 14, 2013 at 11:49 AM

    Thank you for the input, indeed browsers do block all sorts of pop-up methods. And this is a function is not possible in the JotForm Form Builder. If we do find an alternative to this we will update this thread when possible. 

    Thank you for using JotForm.