Get text input max Length : Password « Form Control « JavaScript DHTML
- JavaScript DHTML
- Form Control
- Password
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