IHTMLAnchorElement interface
Designates the destination of a hypertext link.
Members
The IHTMLAnchorElement interface inherits from the IDispatch interface. IHTMLAnchorElement also has these types of members:
- Methods
- Properties
Methods
The IHTMLAnchorElement interface has these methods.
Method | Description |
---|---|
blur | Causes the element to lose focus and fires the HTMLFrameSiteEvents::onblur event. |
focus | Causes the element to receive the focus and executes the code specified by the HTMLFrameSiteEvents::onfocus event. |
Properties
The IHTMLAnchorElement interface has these properties.
Property | Description |
---|---|
Sets or retrieves the access key for the object. |
|
Sets or retrieves the subsection of the IHTMLAnchorElement::href property that follows the number sign (#). |
|
Sets or retrieves the IHTMLAnchorElement::hostname and IHTMLAnchorElement::port number of the location or URL. |
|
Sets or retrieves the host name part of the location or URL. |
|
Sets or retrieves a destination URL or an anchor point. |
|
Sets or gets the list of HTTP methods supported by the object. |
|
Sets or retrieves the name of the object. |
|
Retrieves the file name specified in the IHTMLAnchorElement::href or IHTMLEmbedElement2::src property of the object. |
|
Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onblur event. |
|
Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onfocus event. |
|
Sets or retrieves the file name or path specified by the object. |
|
Sets or retrieves the port number associated with a URL. |
|
Sets or retrieves the protocol portion of a URL. |
|
Sets or retrieves the relationship between the object and the destination of the link. |
|
Sets or retrieves the relationship between the object and the destination of the link. |
|
Sets or retrieves the substring of the IHTMLLocation::href property that follows the question mark. |
|
Sets or retrieves the index that defines the tab order for the object. |
|
Sets or retrieves the window or frame at which to target content. |
|
Sets or gets a URN for a target document. |
Remarks
When an anchor contains an image, the image has a border by default. The color of the border reflects the visited or unvisited status of the link.
This interface may also be referred to in code as IOmLink.
This interface may also be referred to in code as IOmAnchor.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |