MSHTML Classes: CAnchorElement

An instance of the CAnchorElement class is created for each A tag.

Identifiers

coclass: HTMLAnchorElement {3050F248-98B5-11CF-BB82-00AA00BDCE0B}
dispinterface: DispHTMLAnchorElement {3050F502-98B5-11CF-BB82-00AA00BDCE0B}

Scripting

The table below lists the interface members that the CAnchorElement class exposes as properties (methods, collections, etc) through its string table in addition to the very many properties that are common to all elements.

Properties that Microsoft does not list in the HTML and DHTML Reference are highlighted yellow. Properties that are listed but not as applying to the a element are shaded yellow.

Property Attribute Interface Member
appendChild   IHTMLDOMNode appendChild
attributes   IHTMLDOMNode get_attributes
charset same IHTMLAnchorElement2 get_charset
put_charset
childNodes   IHTMLDOMNode get_childNodes
cloneNode   IHTMLDOMNode cloneNode
coords same IHTMLAnchorElement2 get_coords
put_coords
dataFld   IHTMLDataBinding get_dataFld
put_dataFld
dataFormatAs   IHTMLDataBinding get_dataFormatAs
put_dataFormatAs
dataSrc   IHTMLDataBinding get_dataSrc
put_dataSrc
firstChild   IHTMLDOMNode get_firstChild
hasChildNodes   IHTMLDOMNode hasChildNodes
hash   IHTMLAnchorElement get_hash
put_hash
host   IHTMLAnchorElement get_host
put_host
hostname   IHTMLAnchorElement get_hostname
put_hostname
href same IHTMLAnchorElement get_href
put_href
hreflang same IHTMLAnchorElement2 get_hreflang
put_hreflang
insertBefore   IHTMLDOMNode insertBefore
lastChild   IHTMLDOMNode get_lastChild
Methods methods IHTMLAnchorElement get_Methods
put_Methods
mimeType   IHTMLAnchorElement get_mimeType
name same IHTMLAnchorElement get_name
put_name
nameProp   IHTMLAnchorElement get_nameProp
nextSibling   IHTMLDOMNode get_nextSibling
nodeName   IHTMLDOMNode get_nodeName
nodeType   IHTMLDOMNode get_nodeType
nodeValue   IHTMLDOMNode get_nodeValue
put_nodeValue
ownerDocument   IHTMLDOMNode2 get_ownerDocument
parentNode   IHTMLDOMNode get_parentNode
pathname   IHTMLAnchorElement get_pathname
put_pathname
port   IHTMLAnchorElement get_port
put_port
previousSibling   IHTMLDOMNode previousSibling
protocol   IHTMLAnchorElement get_protocol
put_protocol
protocolLong   IHTMLAnchorElement get_protocolLong
rel same IHTMLAnchorElement get_rel
put_rel
removeChild   IHTMLDOMNode removeChild
removeNode   IHTMLDOMNode removeNode
replaceChild   IHMLTDOMNode replaceChild
replaceNode   IHTMLDOMNode replaceNode
rev same IHTMLAnchorElement get_rev
put_rev
search   IHTMLAnchorElement get_search
put_search
shape same IHTMLAnchorElement2 get_shape
put_shape
swapNode   IHTMLDOMNode swapNode
target same IHTMLAnchorElement get_target
put_target
type same IHTMLAnchorElement2 get_type
put_type
uniqueID   IHTMLUniqueName get_uniqueID
uniqueNumber   IHTMLUniqueName get_uniqueNumber
urn same IHTMLAnchorElement get_urn
put_urn