MSHTML Classes: CElement

Many of the MSHTML classes expose the properties (methods, collections, etc) of the otherwise internal CElement class.

Properties that Microsoft does not list in the HTML and DHTML Reference are highlighted.

Property Attribute Interface Member
accessKey same IHTMLElement2 get_accessKey
put_accessKey
addBehavior   IHTMLElement2 addBehavior
addFilter   IHTMLElement2 addFilter
all   IHTMLElement get_all
applyElement   IHTMLElement2 applyElement
attachEvent   IHTMLElement2 attachEvent
behaviorUrns   IHTMLElement2 get_behaviorUrns
blur   IHTMLElement2 blur
canHaveChildren   IHTMLElement2 get_canHaveChildren
canHaveHTML   IHTMLElement3 get_canHaveHTML
children   IHTMLElement get_children
className class IHTMLElement get_className
put_className
clearAttributes   IHTMLElement2 clearAttributes
click   IHTMLElement click
clientHeight   IHTMLElement2 get_clientHeight
clientLeft   IHTMLElement2 get_clientLeft
clientTop   IHTMLElement2 get_clientTop
clientWidth   IHTMLElement2 get_clientWidth
componentFromPoint   IHTMLElement2 componentFromPoint
contains   IHTMLElement contains
contentEditable same IHTMLElement3 get_isContentEditable
put_isContentEditable
createControlRange   IHTMLElement2 createControlRange
currentStyle   IHTMLElement2 get_currentStyle
  dataFld    
  dataFormatAs    
  dataSrc    
detachEvent   IHTMLElement2 detachEvent
dir same IHTMLElement2 get_dir
put_dir
disabled same IHTMLElement2 get_disabled
put_disabled
document   IHTMLElement get_document
doScroll   IHTMLElement2 doScroll 
dragDrop   IHTMLElement3 dragDrop
filters   IHTMLElement get_filters
fireEvent   IHTMLElement3 fireEvent
focus   IHTMLElement2 focus
getAdjacentText   IHTMLElement2 getAdjacentText
getAttribute   IHTMLElement getAttribute
getAttributeNode   IHTMLElement4 getAttributeNode
getBoundingClientRect   IHTMLElement2 getBoundingClientRect
getClientRects   IHTMLElement2 getClientRects
getElementsByTagName   IHTMLElement2 getElementsByTagName
getExpression   IHTMLElement2 getExpression
glyphMode   IHTMLElement3 get_glyphMode
hideFocus same IHTMLElement3 get_hideFocus
put_hideFocus
id same IHTMLElement get_id
put_id
  implementation    
inflateBlock   IHTMLElement3 get_inflateBlock
put_inflateBlock
innerHTML   IHTMLElement get_innerHTML
put_innerHTML
innerText   IHTMLElement get_innerText
put_innerText
insertAdjacentElement   IHTMLElement2 insertAdjacentElement
insertAdjacentHTML   IHTMLElement insertAdjacentHTML
insertAdjacentText   IHTMLElement insertAdjacentText
isContentEditable   IHTMLElement3 get_isContentEditable
isDisabled   IHTMLElement3 get_isDisabled
isMultiLine   IHTMLElement3 get_isMultiLine
isTextEdit   IHTMLElement get_isTextEdit
lang same IHTMLElement get_lang
put_lang
language same IHTMLElement get_language
put_language
mergeAttributes   IHTMLElement3 mergeAttributes
normalize   IHTMLElement4 normalize
offsetHeight   IHTMLElement get_offsetHeight
offsetLeft   IHTMLElement get_offsetLeft
offsetParent   IHTMLElement get_offsetParent
offsetTop   IHTMLElement get_offsetTop
offsetWidth   IHTMLElement get_offsetWidth
onactivate same IHTMLElement3 get_onactivate
put_onactivate
onafterupdate same IHTMLElement get_onafterupdate
put_onafterupdate
onbeforeactivate same IHTMLElement4 get_onbeforeactivate
put_onbeforeactivate
onbeforecopy same IHTMLElement2 get_onbeforecopy
put_onbeforecopy
onbeforecut same IHTMLElement2 get_onbeforecut
put_onbeforecut
onbeforedeactivate same IHTMLElement3 get_onbeforedeactivate
put_onbeforedeactivate
onbeforeeditfocus same IHTMLElement2 get_onbeforeeditfocus
put_onbeforeeditfocus
onbeforepaste same IHTMLElement2 get_onbeforepaste
put_onbeforepaste
onbeforeupdate same IHTMLElement get_onbeforeupdate
put_onbeforeupdate
onblur same IHTMLElement2 get_onblur
put_onblur
oncellchange same IHTMLElement2 get_oncellchange
put_oncellchange
onclick same IHTMLElement get_onclick
put_onclick
oncontextmenu same IHTMLElement2 get_oncontextmenu
put_oncontextmenu
oncontrolselect same IHTMLElement3 get_oncontrolselect
put_oncontrolselect
oncopy same IHTMLElement2 get_oncopy
put_oncopy
oncut same IHTMLElement2 get_oncut
put_oncut
ondataavailable same IHTMLElement get_ondataavailable
put_ondataavailable
ondatasetchanged same IHTMLElement get_ondatasetchanged
put_ondatasetchanged
ondatasetcomplete same IHTMLElement get_ondatasetcomplete
put_ondatasetcomplete
ondblclick same IHTMLElement get_ondblclick
put_ondblclick
ondeactivate same IHTMLElement3 get_ondeactivate
put_ondeactivate
ondrag same IHTMLElement2 get_ondrag
put_ondrag
ondragend same IHTMLElement2 get_ondragend
put_ondragend
ondragenter same IHTMLElement2 get_ondragenter
put_ondragenter 
ondragleave same IHTMLElement2 get_ondragleave
put_ondragleave
ondragover same IHTMLElement2 get_ondragover
put_ondragover 
ondragstart same IHTMLElement get_ondragstart
put_ondragstart
ondrop same IHTMLElement2 get_ondrop
put_ondrop
onerrorupdate same IHTMLElement get_onerrorupdate
put_onerrorupdate
onfilterchange same IHTMLElement get_onfilterchange
put_onfilterchange
onfocus same IHTMLElement2 get_onfocus
put_onfocus
onfocusin same IHTMLElement4 get_onfocusin
put_onfocusin
onfocusout same IHTMLElement4 get_onfocusout
put_onfocusout
onhelp same IHTMLElement get_onhelp
put_onhelp
onkeydown same IHTMLElement get_onkeydown
put_onkeydown
onkeypress same IHTMLElement get_onkeypress
put_onkeypress
onkeyup same IHTMLElement get_onkeyup
put_onkeyup
onlayoutcomplete same IHTMLElement3 get_onlayoutcomplete
put_onlayoutcomplete
onlosecapture same IHTMLElement2 get_onlosecapture
put_onlosecapture
onmousedown same IHTMLElement get_onmousedown
put_onmousedown
onmouseenter same IHTMLElement3 get_onmouseenter
put_onmouseenter
onmouseleave same IHTMLElement3 get_onmouseleave
put_onmouseleave
onmousemove same IHTMLElement get_onmousemove
put_onmousemove
onmouseout same IHTMLElement get_onmouseout
put_onmouseout
onmouseover same IHTMLElement get_onmouseover
put_onmouseover
onmouseup same IHTMLElement get_onmouseup
put_onmouseup
onmousewheel same IHTMLElement4 get_onmousewheel
put_onmousewheel
onmove same IHTMLElement3 get_onmove
put_onmove
onmoveend same IHTMLElement3 get_onmoveend
put_onmoveend
onmovestart same IHTMLElement3 get_onmovestart
put_onmovestart
onpage same IHTMLElement3 get_onpage
put_onpage
onpaste same IHTMLElement2 get_onpaste
put_onpaste
onpropertychange same IHTMLElement2 get_onpropertychange
put_onpropertychange
onreadystatechange same IHTMLElement2 get_onreadystatechange
put_onreadystatechange
onresize same IHTMLElement2 get_onresize
put_onresize
onresizeend same IHTMLElement3 get_onresizeend
put_onresizeend
onresizestart same IHTMLElement3 get_onresizestart
put_onresizestart
onrowenter same IHTMLElement get_onrowenter
put_onrowenter
onrowexit same IHTMLElement get_onrowexit
put_onrowexit
onrowsdelete same IHTMLElement2 get_onrowsdelete
put_onrowsdelete
onrowsinserted same IHTMLElement2 get_onrowsinserted
put_onrowsinserted
onscroll same IHTMLElement2 get_onscroll
put_onscroll
onselectstart same IHTMLElement get_onselectstart
put_onselectstart
outerHTML   IHTMLElement get_outerHTML
put_outerHTML
outerText   IHTMLElement get_outerText
put_outerText
parentElement   IHTMLElement get_parentElement
parentTextEdit   IHTMLElement get_parentTextEdit
readyState   IHTMLElement2 get_readyState
readyStateValue   IHTMLElement2 get_readyStateValue
recordNumber   IHTMLElement get_recordNumber
releaseCapture   IHTMLElement2 releaseCapture 
removeAttribute   IHTMLElement removeAttribute
removeAttributeNode   IHTMLElement4 removeAttributeNode
removeBehavior   IHTMLElement2 removeBehavior
removeExpression   IHTMLElement2 removeExpression
removeFilter   IHTMLElement2 removeFilter
replaceAdjacentText   IHTMLElement2 replaceAdjacentText
runtimeStyle   IHTMLElement2 get_runtimeStyle
scopeName   IHTMLElement2 get_scopeName
scrollHeight   IHTMLElement2 get_scrollHeight
scrollIntoView   IHTMLElement scrollIntoView
scrollLeft   IHTMLElement2 get_scrollLeft
put_scrollLeft
scrollTop   IHTMLElement2 get_scrollTop
put_scrollTop
scrollWidth   IHTMLElement2 get_scrollWidth
setActive   IHTMLElement3 setActive
setAttribute   IHTMLElement setAttribute
setAttributeNode   IHTMLElement4 setAttributeNode
setCapture   IHTMLElement2 setCapture 
setExpression   IHTMLElement2 setExpression
sourceIndex   IHTMLElement get_sourceIndex
style same IHTMLElement get_style
tabIndex same IHTMLElement2 get_tabIndex
put_tabIndex
tagName   IHTMLElement get_tagName
tagUrn   IHTMLElement2 get_tagUrn
put_tagUrn
title same IHTMLElement get_title
put_title
toString   IHTMLElement toString

The style property’s entry in the string table is complex, referencing two property descriptors, which give alternate names styleobj and style_Str. Details are presently beyond the scope of these notes.