1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Open Popup On-unload in Mozilla 1.1 or Netscape 7.0

Discussion in 'Firefox, Thunderbird & SeaMonkey' started by stankb, 2002/08/06.

Thread Status:
Not open for further replies.
  1. 2002/08/06
    stankb

    stankb Inactive Thread Starter

    Joined:
    2002/08/05
    Messages:
    2
    Likes Received:
    0
    Hello,

    I need to open a Popup On-unload and Netscape 7.0 and Mozilla is not displaying them. Is there any way to enable that?

    I need to perform some unlocking tasks when the user clicks the exit button.

    I have tried many ways but they all fail in those browsers (IE is O.K.). One of the ways (which fails) is below:

    <!--

    <html>
    <head>
    <title>Main Window</title>
    <script>
    function TheWindowIsBeingClosed()
    { window.open( "http://cnn.com ");
    }
    </script>
    </head>

    <body onunload=TheWindowIsBeingClosed()>

    </body>
    </html>

    -->

    Any help appreciated! Am I doing something wrong or is it just not allowed?

    Thanks!
    Stanley
     
    Last edited: 2002/08/06
  2. 2002/08/08
    Brooks

    Brooks Inactive

    Joined:
    2002/06/28
    Messages:
    87
    Likes Received:
    0
    The reason would probably be because those two browsers have a setting that disables opening of unrequested windows. Pop-ups and pop-unders.

    The user would actually have to click on a link for the pop-up to work on browser or window close.
     

  3. to hide this advert.

Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.