Partager via


A Element

This section lists the methods supported by the A 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 only supports SELFLAG_TAKEFOCUS.
get_accChild Returns the requested child object or its ID. If you set the child ID to CHILDID_SELF, the method returns E_INVALIDARG.
get_accChildCount Returns the number of children.
get_accDefaultAction Has Jump as the default action.
get_accDescription Returns the title. If there is no title, the method returns the inner text for the anchor.
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, the method returns VT_EMPTY.
get_accHelp Returns E_NOTIMPL.
get_accHelpTopic Returns E_NOTIMPL.
get_accKeyboardShortcut Returns the accessKey property of the A element (A.accessKey).
get_accName Returns the title. If there is no title, the method returns the inner text for the anchor.
get_accParent Returns the closest accessible element in the parent chain.
get_accRole Returns ROLE_SYSTEM_LINK.
get_accSelection See About Selection
get_accState Returns one or more of STATE_SYSTEM_LINK, STATE_SYSTEM_INVISIBLE, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_FOCUSED, and STATE_SYSTEM_TRAVERSED. As of Microsoft Internet Explorer 6, also returns STATE_SYSTEM_OFFSCREEN. For more information, see About Invisible Objects.
get_accValue Returns the href attribute of the anchor.
put_accName Returns E_NOTIMPL.
put_accValue Returns E_NOTIMPL.