IHTMLControlElement::accessKey Property

Sets or retrieves the access key for the object.

Syntax

HRESULT IHTMLControlElement::get_accessKey(BSTR *p);
HRESULT IHTMLControlElement::put_accessKey(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives a key on an alphanumeric keyboard.
  • v
    BSTR that specifies a key on an alphanumeric keyboard.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

In Windows Internet Explorer 7 and greater, ALT+D selects text in the Address bar, making D unavailable as a keyboard shortcut on a webpage.

See Also

IHTMLStyle2::accelerator, IHTMLElement2::tabIndex