display popup on closing website ?

Discussion in 'HTML & Website Design' started by topaffiliateprogram, Nov 4, 2006.

  1. #1
    anyone know code to display javascript popup on closing window ...
    does this popup code even works when someone have popup's closed ?
     
    topaffiliateprogram, Nov 4, 2006 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    <head>
    <script type="text/javascript">
    <!--
    function myPopup() {
    window.open( "http://www.google.com/" )
    }
    </script>
    </head>

    <body onUnload="myPopup()">
     
    it career, Nov 6, 2006 IP
  3. KunkVentures

    KunkVentures Peon

    Messages:
    744
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes please do this if you want me to hate you.
     
    KunkVentures, Nov 6, 2006 IP
  4. Mystique

    Mystique Well-Known Member

    Messages:
    2,579
    Likes Received:
    94
    Best Answers:
    2
    Trophy Points:
    195
    #4
    Nah, if you want to hate him just provide him with the code for the "popup from hell" a window that never closes unless you restart your system :rolleyes:
     
    Mystique, Nov 6, 2006 IP
  5. Eskarina

    Eskarina Guest

    Messages:
    608
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hehee

    Yeah nobody likes pop-ups except for the people that put them on their sites.

    It's a sadly desperate way to try selling.

    The only people that are going to fall for it and 'believe the unbelievable last chance offer', is the vulnerable - and that is one dirty trick to play.
     
    Eskarina, Nov 6, 2006 IP