popup on load.

Discussion in 'Programming' started by toxic1985, Apr 10, 2009.

  1. #1
    I am running a Adult Site. So I need a Popup Warning " only for 18+ Click Here for Enter" Any one can tell me how to solve this?
     
    toxic1985, Apr 10, 2009 IP
  2. iam.xavier

    iam.xavier Well-Known Member

    Messages:
    521
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    125
    #2
    This will help you
    
    
    <script type="text/javascript">
    var answer = Confirm: ("Only for 18+ Click OK to Enter")
    if (answer)
    window.location = "http://www.yourURL.com"
    else
    alert("Nothing happened")
    </script>
    
      
    PHP:
     
    iam.xavier, Apr 10, 2009 IP