Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2002
    Location
    Florida, USA
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I get dual popup to work?

    I cannot figure out how to get 2 onunload popups to work on one page. Only one ends up loading. The other one does nothing.

    How is this accomplished? I tried putting in duplicates of the same popup code in my page, one pointing to popup.htm and the second one to popup2.htm.

    <BODY BGCOLOR="#efefef" onunload="popup('popup.htm');", onunload="popup('popup2.htm');">

    <script language="JavaScript">
    <!--

    var exit = true;
    function popup()
    {
    if( exit )
    { window.open('popup.html','CC', 'scrollbars=no, width=575, height=450');

    }
    }
    // -->

    function clicked()
    {
    exit = false;
    }

    </script>

    Fred

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    fre...
    /me is just a guessing® here 'cept /me thinks ya have to have just a two® different names for the scripts n' then call 'em like...
    onUnload="popupa();popupb()"


  •  

    Posting Permissions

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