Condividi tramite


BUTTON Element

This section lists the methods supported by the BUTTON element.

accDoDefaultAction Performs the following actions: ScrollIntoView, Focus, and Click.
accHitTest See Hit Testing.
accLocation Specifies the location in screen coordinates.
accNavigate See About General Navigation.
accSelect Scrolls into view and sets the focus on itself. The method supports only SELFLAG_TAKEFOCUS.
get_accChild Returns S_FALSE and a NULL pointer.
get_accChildCount Returns S_OK and zero as the number of children. Button elements can never have child elements.
get_accDefaultAction Has Press as the default action.
get_accDescription Returns the inner text for a BUTTON and the value for RESET and SUBMIT. If the inner text or value is NULL, the method returns the title.
get_accFocus Returns CHILDID_SELF if this element has the focus. If a child of this element has the focus, the method returns information about that child. Otherwise, it returns VT_EMPTY.
get_accHelp Returns E_NOTIMPL.
get_accHelpTopic Returns E_NOTIMPL.
get_accKeyboardShortcut Returns the accessKey property of the button element (BUTTON.accessKey).
get_accName Returns the inner text for a BUTTON and the value for RESET and SUBMIT. If the inner text or value is NULL, the method returns the title.
get_accParent Returns the closest accessible element in the parent chain.
get_accRole Returns ROLE_SYSTEM_PUSHBUTTON.
get_accSelection See About Selection.
get_accState Returns one or more of STATE_SYSTEM_UNAVAILABLE, STATE_SYSTEM_INVISIBLE, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_FOCUSED, and STATE_SYSTEM_DEFAULT. As of Microsoft Internet Explorer 6, also returns STATE_SYSTEM_OFFSCREEN. For more information, see About Invisible Objects.
get_accValue Returns E_NOTIMPL.
put_accName Returns E_NOTIMPL.
put_accValue Returns E_NOTIMPL.