HTML | DOM Input Password disabled Property Last Updated : 25 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The DOM Input Password disabled Property is used to set or return the whether the Input Password Field must be disabled or not. A disabled Password Field is un-clickable and unusable. It is a boolean attribute and used to reflect the HTML Disabled attribute. It is usually rendered in grey color by default in all the Browsers. Syntax: It is used to return the disabled property.passwordObject.disabledIt is used to set the disabled property.passwordObject.disabled = true|false Property Values: true: It defines that the Input Password field is disabled.False: It has a default value. It defines that the Input Password Field is not disabled. Return Value: It returns a boolean value which represents that the Input Password Field is disabled or not. Example-1: This example illustrates how to return the property. HTML <!DOCTYPE html> <html> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Input Password disabled Property</h2> Password: <input type="password" id="myPsw" disabled> <br><br> <button onclick="myFunction()"> Click Here! </button> <p id="demo" style="color:green;font-size:25px;"></p> <script> function myFunction() { var x = document.getElementById( "myPsw").disabled; document.getElementById( "demo").innerHTML = x; } </script> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Example-2: This example illustrates how to set the property. HTML <!DOCTYPE html> <html> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Input Password disabled Property</h2> Password: <input type="password" id="myPsw" disabled> <br><br> <button onclick="myFunction()"> Click Here! </button> <p id="demo" style="color:green;font-size:25px;"></p> <script> function myFunction() { var x = document.getElementById( "myPsw").disabled =false; document.getElementById( "demo").innerHTML = x; } </script> </body> </html> Output: Before clicking on the button: After clicking on the button: Supported Browsers: The browser supported by DOM input Password disabled Property are listed below: Google Chrome 1Edge 12Firefox 1Opera 2Safari 1 Comment More infoAdvertise with us Next Article HTML | DOM Input Password disabled Property M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML | DOM Input Password defaultValue Property The DOM Input Password defaultValue Property is used to set or return the default value of the Password Field. This Property is used to reflect the HTML value attribute . The main difference between the default value is that default value indicate the default value specified in the attribute while t 2 min read HTML | DOM Input Month disabled Property The DOM Input Month disabled property in HTML DOM is used to return a boolean value that represents that a Month field should be disabled or not. Disabled elements are shown in gray by default and are unusable and un-clickable. Syntax: It returns the disabled property.monthObject.disabledIt is used 2 min read HTML | DOM Input Password form Property The DOM Input Password form Property is used for returning the reference of the form containing the input Password field. It is a read-only property that returns a form object on success. Syntax: passwordObject.form Return Values: It returns a string value which specify the reference of the form con 1 min read HTML DOM Input Number disabled Property The Input Number disabled Property in HTML DOM is used to return a boolean value that represents whether a number field should be disabled or not. Disabled elements are shown in gray by default and are unusable and un-clickable. Syntax: It returns the disabled property.numberObject.disabledIt is u 2 min read HTML | DOM Input Password autocomplete Property The Input Password autocomplete Property in HTML DOM is used to set or return the value of the autocomplete attribute of an Input Password field. The autocomplete attribute is used to specify whether the autocomplete attribute has âonâ or âoffâ value. When the autocomplete attribute is set to on, th 2 min read Like