Javascript onbeforeunload does not work.

Discussion in 'Internet Explorer' started by nowwebserviceha, May 5, 2006.

  1. The web page itself contains a flash movie. But I have included a javascript
    that asks the user to confirm when the user closes the window. Here is my
    code:

    window.onbeforeunload = confirmExit;
    function confirmExit()
    {
    return "Are you sure you want to exit this window?";
    }

    Now I get this message every time a new frame in the movie appears.
    It used to work just fine with IE6 (and older versions but 7). Can anyone
    let me know what is new in IE7 and what needs to be changed?

    Thanks
     
    nowwebserviceha, May 5, 2006
    #1
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.