Designates the destination of a hypertext link.
accessKey Sets or retrieves the access key for the object. blur Causes the element to lose focus and fires the onblur event. focus Causes the element to receive the focus and executes the code specified by the onfocus event. hash Sets or retrieves the subsection of the IHTMLAnchorElement::href property that follows the number sign (#). host Sets or retrieves the hostname and port number of the location or URL. hostname Sets or retrieves the host name part of the location or URL. href Sets or retrieves a destination URL or an anchor point. Methods Sets or gets the list of HTTP methods supported by the object. mimeType Retrieves the MIME type for the file. name Gets or sets the name of the object. nameProp Retrieves the file name specified in the href or src property of the object. onblur Sets or retrieves a pointer to the event handler function associated with the onblur event. onfocus Sets or retrieves a pointer to the event handler function associated with the onfocus event. pathname Sets or retrieves the file name or path specified by the object. port Sets or retrieves the port number associated with a URL. protocol Sets or retrieves the protocol portion of a URL. protocolLong Gets the long name of the protocol, such as Hypertext Transfer Protocol, used by the browser to locate the item associated with the anchor. rel Sets or retrieves the relationship between the object and the destination of the link. rev Sets or retrieves the relationship between the object and the destination of the link. search Sets or retrieves the substring of the href property that follows the question mark. tabIndex Sets or retrieves the index that defines the tab order for the object. target Sets or retrieves the window or frame at which to target content. urn Sets or gets a Uniform Resource Name (URN) for a target document.
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.
Stock Implementation mshtml.dll Custom Implementation No Inherits from IDispatch Header and IDL files Mshtml.h, Mshtml.idl Minimum availability Internet Explorer 4.0 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 2.12