Password Object
The name property sets or returns the value of the name attribute of a password field.
The name attribute is used to identify form data after it has been submitted to the server, or to reference form data using JavaScript on the client side.
Note: Only form elements with a name attribute will have their values passed when submitting a form.
Set the name property:
Return the name property:
![]()
The name property is supported in all major browsers.
Display the value of the name attribute of the password field:
Password Object
Your message has been sent to W3Schools.