Get text input max Length : Password « Form Control « JavaScript DHTML






Get text input max Length

 
    
<html>
<body>
<input type="password" id="myText">
<script language="JavaScript">
    document.getElementById("myText").maxLength = 10;
</script>
</body>
</html>

    
      
        
  








Related examples in the same category

1.Password field size
2.Password Protecting a Page
3.Methods and Properties of the Password Object
4.Demonstrates password field and hiden field