Sets or retrieves the pressed state of a button that can be toggled.
HRESULT IHTMLElement5::get_ariaPressed(BSTR *p);HRESULT IHTMLElement5::put_ariaPressed(BSTR v);
- Pointer to a variable of type BSTR that receives the pressed state.
- BSTR that specifies the pressed state.
true The element is down (button pressed). false The element is up. mixed The element indicates both pressed and unpressed states. undefined Default. The element state is unknown.
Returns S_OK if successful, or an error value otherwise.
Buttons with a defined aria-pressed state can be toggled. (When aria-pressed is
truethe button is down, when
falseit is up.) Simple command buttons do not need to define a aria-pressed state.