Javascript Reference
Categories: password

javascript password disabled

@March 15, 2008, 1:22 a.m.
disabledFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  


Specifies whether the element is available for user interaction. When set to true, the element cannot receive focus or be modified by the user, and it typically appears grayed out on the page. This property is available for all HTML element objects in IE 5.5 for Windows and later. For IE 4 and IE 5, it applies only to form controls, while Netscape 6 and later recognize the property for form controls and the style element object. A disabled form control's name/value pair is not submitted with its form.

document.getElementById("myButton").disabled = true;

Boolean value: true | false.



Powered by Linode.