Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

password page javascript

var passwordText = document.getElementById("id").value;
if(passwordText == "hello300") {
  return true;
}
else {
  alert("Not correct")
  return false
}
Comment

Javascript show password...

<!DOCTYPE html>
<html>
    <head>
        <title>JavaScript: Show And Hide Input Password Text</title>
        <meta charset="windows-1252">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        <style>
            #pass{padding: 10px;}
        </style>
        
        <script>

            function showPass()
            {
                var pass = document.getElementById('pass');
                if(document.getElementById('check').checked)
                {
                    pass.setAttribute('type','text');
                }else{
                    pass.setAttribute('type','password');
                }
            }

        </script>
        
        
    </head>
    <body>
        <input type="password" id="pass"/>
        <input type="checkbox" id="check" onclick="showPass();"/>Show Password
    </body>
</html>
Comment

show password using javascript

<script>
$(document).ready(function(){
    $('#checkbox').on('change', function(){
        $('#password').attr('type',$('#checkbox').prop('checked')==true?"text":"password"); 
    });
});
</script>
<input type="password" id="password"> 
<input type="checkbox" id="checkbox">Show Password
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript save multiple images to server 
Javascript :: requestanimationframe in javascript 
Javascript :: js get smallest value of array 
Javascript :: access session in javascript 
Javascript :: javascript merge multidimensional array 
Javascript :: document.addeventlistener 
Javascript :: empty array length javascript 
Javascript :: javascript expression 
Javascript :: sum an array of objects 
Javascript :: to htmlhow can i add the list in javascript 
Javascript :: add numbers from array nodejs 
Javascript :: add array type to sequelize migration 
Javascript :: js date toisostring with timezone 
Javascript :: js if 
Javascript :: javascript random item of array 
Javascript :: rxjs coding example 
Javascript :: dual array javascript 
Javascript :: p5js right mouse button released 
Javascript :: unity overlap box 
Javascript :: react-google-invisible-recaptcha 
Javascript :: array for numbers 
Javascript :: vuejs cordoba pantalla en blanco 
Python :: jupyter notebook warning off 
Python :: python shebang 
Python :: python pip install matplotlib 
Python :: Import "reportlab.pdfgen.canvas" could not be resolved 
Python :: how to print error in try except python 
Python :: python check is os is windows 
Python :: download playlist from youtube python 
Python :: add text toimage cv2 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =