Preventing unload .

Discussion in 'Javascript' started by Nithya Venkatachalam, Aug 31, 2004.

  1. Hi,

    How to stop unloading a page in the event handler called during
    onUnload?

    onUnload=unloadhandler();

    function unloadhandler()
    {
    if(!confirm("message"))
    {
    I want something to be done which prevents the page from
    unloading and returns to the same page as 'back' functionality
    }

    }
    Nithya Venkatachalam, Aug 31, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andy
    Replies:
    1
    Views:
    1,969
    Chris Taylor
    Sep 24, 2005
  2. Andy

    Cant unload assembly

    Andy, Oct 12, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,834
    Nick Hertl
    Oct 18, 2005
  3. M N E E L Y
    Replies:
    3
    Views:
    461
    Natty Gur
    Jul 16, 2003
  4. Guru Prasad
    Replies:
    1
    Views:
    452
    Ken Cox [Microsoft MVP]
    Jul 25, 2003
  5. Nithya  Venkatachalam

    Preventing unload .

    Nithya Venkatachalam, Aug 31, 2004, in forum: Javascript
    Replies:
    5
    Views:
    148
    R. van Laake
    Nov 8, 2004
Loading...

Share This Page