Horje
Javascript show password... Code Example
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>
Source: morioh.com




Javascript

Related
how to change background color in css and or js react Code Example how to change background color in css and or js react Code Example
scroll event counting using javascript stackoverflow Code Example scroll event counting using javascript stackoverflow Code Example
Masonry js css Code Example Masonry js css Code Example
count number of vowels in a string javascript Code Example count number of vowels in a string javascript Code Example
if path name is different but parent nav should be active in jquery Code Example if path name is different but parent nav should be active in jquery Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9