HTML DOM id Property
Complete Password Object Reference
Definition and Usage
The id property sets or returns the id of a password field.
Syntax
Example
The following example gets the id of the password field:
<html>
<body>
<form id="form1">
<input type="password" id="password1" />
</form>
<p>The id of the password field is:
<script type="text/javascript">
x=document.getElementById('password1');
document.write(x.id);
</script></p>
</body>
</html>
|
Try-It-Yourself Demos
Get the
id of 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. |
|
|
|