HTML DOM disabled Property
Complete Password Object Reference
Definition and Usage
The disabled property sets or returns whether or not a password field
should be disabled.
Syntax
passwordObject.disabled=true|false
|
Example
The following example disables the password field:
<html>
<head>
<script type="text/javascript">
function disablePassword()
{
document.getElementById("password1").disabled=true
}
</script>
</head>
<body>
<form>
<input type="password" id="password1" />
<input type="button" id="button1" onClick="disablePassword()"
value="Disable password field" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Disable a password field
Complete Password Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|