Export (0) Print
Expand All

disabled property

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

Syntax

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

Property values

Type: VARIANT_BOOL

VARIANT_FALSE (false)

Default. Element is not disabled.

VARIANT_TRUE (true)

Element is disabled.

Remarks

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

IHTMLElement3::disabled

 

 

Community Additions

ADD
Show:
© 2014 Microsoft