Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

disabled property

Sets or retrieves a value that indicates whether the user can interact with the object.


HRESULT value = object.put_disabled( v);HRESULT value = object.get_disabled(* p);

Property values



Default. Element is not disabled.


Element is disabled.


When an element is disabled, it appears dimmed and does not respond to user input. Disabled elements do not respond to mouse events, nor will they respond to the IHTMLElement3::contentEditable property.

If an element's IHTMLInputFileElement::disabled property is set to false but it is contained within a IHTMLInputFileElement::disabled element, it cannot override the IHTMLInputFileElement::disabled state of its container.

For link, style and styleSheet, the attribute sets or retrieves whether a style sheet is applied to the object.

Note  As of Windows Internet Explorer 9, the IHTMLInputFileElement::disabled property is supported for OPTGROUP and OPTION elements, but only for pages displayed in standards mode. These elements do not support the property in earlier versions of Windows Internet Explorer or for webpages displayed in earlier document modes.

See also




Community Additions

© 2015 Microsoft