Read only property of Input Password.
The Password object represents a password field in an HTML form.For each instance of an HTML <input type=”password”> tag on a form, a Password object is created.
“readOnly” property sets or returns whether or not a password field should be read-only.
Syntex : passwordObject.readOnly=true|false
<html>
<head>
<script type="text/javascript">
function makeReadOnly()
{
document.getElementById("password1").readOnly=true;
}
</script>
</head>
<body><form><input type=”password” id=”password1″ value=”thgrt456″ />
<input type=”button” onclick=”makeReadOnly()” value=”Make read-only” />
</form>
</body>
</html>
-
Archives
- September 2009 (1)
- August 2009 (2)
- July 2009 (3)
- June 2009 (2)
- May 2009 (3)
- April 2009 (2)
- March 2009 (11)
- February 2009 (6)
- August 2008 (1)
- May 2008 (2)
- March 2008 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS