Password.form

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

							password.form

Description

The form property of the Password object is used to access the Form object in which the password box resides.

Example

Listing 7.417 shows an example of how the form property is used to get the form name.

Listing 7.417 Example of the form Property
<html>
<head>
<title> Example of the password form property</title>
</head>
<body>

<form name="form1">
<input type="PASSWORD" Name="pass" size=10>
<br>
<input type="BUTTON" value="Show Formname" onClick=alert(document.form1.pass.form.name)>
</form>

</body>
</html>
							
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.