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 IHTMLInputTextElement::disabled property is set to false but it is contained within a IHTMLInputTextElement::disabled element, it cannot override the IHTMLInputTextElement::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 IHTMLInputTextElement::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