Use prompt for password checking : Dialog : Window Browser JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Window Browser » Dialog »

 

Use prompt for password checking




<html>
<head>
  <meta http-equiv="Content-Script-Type" content="text/javascript">
  <title>My First JavaScript Script</title>
  <script language="JavaScript">
  <!--
    function passCheck(){
      if(prompt("Please enter your password",""== "letmein"){
        window.location = "http://www.navioo.com";
      }else{
        window.location = "http://www.navioo.com";
      }
    }
  //-->
  </script>
</head>
<body onload="passCheck()">
  <noscript>
      Your browser either does not support JavaScript or your have it turned off. 
  </noscript>
</body>
</html>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Window Browser
» Dialog