This interface designates the destination of a hypertext link.
IHTMLAnchorElement Methods
blur Causes a control to lose the focus, and executes the code specified for the onblur event. focus Causes the A object to receive the focus, and executes the code specified for the onfocus event. get_accessKey Retrieves the accelerator key for the A object. get_hash Retrieves the string associated with the hash property of the A object. get_host Retrieves the host name and the optional port information of the location or URL. get_hostname Retrieves the host-name portion of the location or URL. get_href Retrieves the destination URL or anchor point. get_Methods Retrieves a list of methods that the user can perform on an object. get_mimeType Retrieves the MIME type for the file. get_name Retrieves the name of the control, bookmark, or application. get_nameProp Retrieves only the file name from the URL that the browser uses to locate the anchor. get_onblur Retrieves a pointer to the event handler function associated with the onblur event on the A object. get_onfocus Retrieves a pointer to the event handler function associated with the onfocus event on the A object. get_pathname Retrieves the full file name or object path. get_port Retrieves the port number from the URL. get_protocol Retrieves the protocol portion of the URL that the browser uses to locate the item associated with the anchor. The protocol portion, which indicates the access method, includes the initial substring of the URL up to and including the first colon. get_protocolLong Retrieves the long name of the protocol, such as Hypertext Transfer Protocol, used by the browser to locate the item associated with the anchor. get_rel Retrieves the relationship(s) described by the hypertext link from the anchor to the target. get_rev Retrieves the relationship(s) described by the hypertext link from the anchor to the target, but the semantics of the link type are in the reverse direction. get_search Retrieves the substring that follows the question mark (?) symbol in the HREF attribute of the A object. This is the query string or form data. get_tabIndex Retrieves the tab index of the A object. get_target Retrieves the target window or frame. get_urn Retrieves a uniform resource name (URN) for a target document. The format of URNs is under discussion (1994) by various working groups of the Internet Engineering Task Force. put_accessKey Sets an accelerator key for the object. Pressing CTRL+key selects this anchor object in the user's browser. put_hash Sets the string following the hash (#) symbol in the HREF attribute of the anchor element. put_host Sets the host name and the optional port information of the location or URL. put_hostname Sets the host-name portion of the location or URL. put_href Sets the destination URL or anchor point. put_Methods Sets information about the functions that the user can perform on an object. put_name Sets the name of the anchor. put_onblur Sets a pointer to the event handler function associated with the onblur event on the A element. put_onfocus Sets a pointer to the event handler function associated with the onfocus event on the A element. put_pathname Sets the full file name or object path. put_port Sets the port number in a URL. put_protocol Sets the protocol portion of the URL; that is, the initial substring up to and including the first colon. The protocol indicates the URL's access method. put_rel Sets the relationship(s) described by the hypertext link from the anchor to the target. put_rev Sets the relationship(s) described by the hypertext link from the anchor to the target, but the semantics of the link type are in the reverse direction. put_search Sets the substring that follows the question mark (?) symbol in the HREF attribute of the A object. This is the query string or form data. put_tabIndex Sets the tab index of the A object. put_target Sets the window or frame to the target. put_urn Sets a uniform resource name (URN) for a target document. The format of URNs is under discussion (1994) by various working groups of the Internet Engineering Task Force.
Interface Information
Implementation System (Mshtml.dll) 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
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
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.