Take a look at this site. How can I do the same on my site?

Discussion in 'HTML & Website Design' started by topdog9926, Mar 14, 2007.

  1. #1
    Please take a look at this website: http://www.mininggold.com/index.html The trick is when you close the page, there is a pop up with an additional message.

    How can make my website page to do that i.e bring up a pop-up when the user clicks off? I need the code, and how to edit it to fit my site (window height, width, etc)

    Thank you.
     
    topdog9926, Mar 14, 2007 IP
  2. Brandon Sheley

    Brandon Sheley Illustrious Member

    Messages:
    9,721
    Likes Received:
    612
    Best Answers:
    2
    Trophy Points:
    420
    #2
    god that site is ugly :(
     
    Brandon Sheley, Mar 14, 2007 IP
  3. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #3
    search for java script. open when close page or something like that.
     
    login, Mar 14, 2007 IP
  4. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #4
    The following code snippets will help.
    <BODY bgColor=#cc9900 onBeforeUnload="return ExitPop();">
    Code (markup):
    <script type='text/javascript'>
    <!--
    var PreventExitPop = false;
    function ExitPop() {
    	if(PreventExitPop == false)	{
    		PreventExitPop=true;
    		MainBody.style.display='none'; 
    		ExitDiv.style.display='block'; 
    		return "*****************************************************\n\nDON'T LEAVE YET! I'll give you this one chance\nto get Mining Gold On The Internet FREE right now!\n\nPlease click on the CANCEL button to stay on this current page.\n\n*****************************************************"
    	} 
    }
    // -->
    </script>
    Code (markup):
    <a href="http://www.website.com/somepage.html" onclick="PreventExitPop=true">link name</a>
    Code (markup):
     
    Clive, Mar 14, 2007 IP
  5. longhornfreak

    longhornfreak Well-Known Member

    Messages:
    2,067
    Likes Received:
    95
    Best Answers:
    0
    Trophy Points:
    140
    #5
    i've seen this too, its quite a good idea. when i saw it used, the yes redirected to an adult friend finder sign up. its unlikely anyone would fill it out but hey...

    and cheers for finding the code Clive's
     
    longhornfreak, Mar 15, 2007 IP
  6. fuse-box

    fuse-box Peon

    Messages:
    609
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i know, i bet the guy doesn't sell any of those ebooks with that website looking like that...
     
    fuse-box, Mar 15, 2007 IP
  7. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #7
    I've seen tons of "websites" with that type of approach to selling things.
    Not sure they do real sales though. I do think that topdog9926 was just interested in their javascript trick :)
     
    Clive, Mar 16, 2007 IP
  8. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #8
    Exit Popup is something that I hate the most :mad:
     
    Aragorn, Mar 16, 2007 IP