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