Popup with forced question code help

Discussion in 'JavaScript' started by Assault591, Jan 18, 2009.

  1. #1
    Ok what i am looking for is a pop up that loads before the rest of the page does and you have to answer the pop up question correctly for example "do you speak English?" and if you answer no then it will forward you to google if you answer correctly then it will allow you to view the page you were already going to. I tired google but i didn't know how to ask it :rolleyes:

    Thanks
     
    Assault591, Jan 18, 2009 IP
  2. Assault591

    Assault591 Guest

    Messages:
    174
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone got any ideas?
     
    Assault591, Jan 18, 2009 IP
  3. Assault591

    Assault591 Guest

    Messages:
    174
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This will be my last bump :(
     
    Assault591, Jan 21, 2009 IP
  4. gnp

    gnp Peon

    Messages:
    137
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <script type="text/javascript">
    if (!confirm('Do you speak English ?'))
    	document.location='http://www.google.com';
    </script>
    HTML:
    that should do what you want
     
    gnp, Jan 22, 2009 IP