Results 1 to 2 of 2

Thread: Exit-popup window when you close the site / browser

  1. #1
    Join Date
    Aug 2013

    Exit-popup window when you close the site / browser

    You want to display a pop-up window when you close the site / browser.
    For example, this feature works, but it displays a row and all:
    [CODE] window.onbeforeunload = function (e) {
    return 'Dialog text here.';
    }; [/ CODE]
    Neither of which there is more thrust comes out. Most pop-up window is done.
    That's just not able to withdraw it when the window is closed site.
    There is still such, for example, the function:
    [CODE] $ (window). Unload (function () {alert ("Bye now!");}); [/ CODE]
    But for some reason it does not work.

  2. #2
    Join Date
    Apr 2010
    it should be unload not Unload . JavaScript is case sensitive

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center