This interface provides the ability to programmatically access the properties and methods that are common to all element objects.
IHTMLElement Methods
click Simulates a click by causing the onclick event to fire. contains Determines whether the given object is contained within the current object. get_all Retrieves the collection of all the objects in the HTML that are within the scope of this object. get_children Retrieves the collection that contains all the immediate children of this object. get_className Retrieves the value of the className property of the given object. The property is typically used to associate a particular style rule in a style sheet with the object. get_document Retrieves an interface pointer that provides access to the document object's properties and methods. get_filters Retrieves a collection of filter objects for an element. get_id Retrieves the value of the id property for the object. get_innerHTML Retrieves the HTML between the start and end tags of the current element. get_innerText Retrieves the text between the start and end tags of the current element. get_isTextEdit Retrieves the value that indicates whether a text range object can be created using the given object. get_lang Retrieves the current language. get_language Retrieves the language that the current script is written in. get_offsetHeight Retrieves the height of the element, in pixels, relative to the coordinate system of the offset parent. get_offsetLeft Retrieves the horizontal position of the element, in pixels, relative to the coordinate system of the offset parent. get_offsetParent Retrieves a reference to the container object that defines the coordinate system for the element. get_offsetTop Retrieves the vertical position of the element, in pixels, relative to the coordinate system of the offset parent. get_offsetWidth Retrieves the width of the element, in pixels, relative to the coordinate system of the offset parent. get_onafterupdate Retrieves a pointer to the event handler function associated with the onafterupdate event on the object. get_onbeforeupdate Retrieves a pointer to the event handler function associated with the onbeforeupdate event on the object. get_onclick Retrieves a pointer to the event handler function associated with the onclick event on the object. get_ondataavailable Retrieves a pointer to the event handler function associated with the ondataavailable event on the object. get_ondatasetchanged Retrieves a pointer to the event handler function associated with the ondatasetchanged event on the object. get_ondatasetcomplete Retrieves a pointer to the event handler function associated with the ondatasetcomplete event on the object. get_ondblclick Retrieves a pointer to the event handler function associated with the ondblclick event on the object. get_ondragstart Retrieves a pointer to the event handler function associated with the ondragstart event on the object. get_onerrorupdate Retrieves a pointer to the event handler function associated with the onerrorupdate event on the object. get_onfilterchange Retrieves a pointer to the event handler function associated with the onfilterchange event on the object. get_onhelp Retrieves a pointer to the event handler function associated with the onhelp event on the object. get_onkeydown Retrieves a pointer to the event handler function associated with the onkeydown event on the object. get_onkeypress Retrieves a pointer to the event handler function associated with the onkeypress event on the object. get_onkeyup Retrieves a pointer to the event handler function associated with the onkeyup event on the object. get_onmousedown Retrieves a pointer to the event handler function associated with the onmousedown event on the object. get_onmousemove Retrieves a pointer to the event handler function associated with the onmousemove event on the object. get_onmouseout Retrieves a pointer to the event handler function associated with the onmouseout event on the object. get_onmouseover Retrieves a pointer to the event handler function associated with the onmouseover event on the object. get_onmouseup Retrieves a pointer to the event handler function associated with the onmouseup event on the object. get_onrowenter Retrieves a pointer to the event handler function associated with the onrowenter event on the object. get_onrowexit Retrieves a pointer to the event handler function associated with the onrowexit event on the object. get_onselectstart Retrieves a pointer to the event handler function associated with the onselectstart event on the object. get_outerHTML Retrieves the current element object and its content in HTML. get_outerText Retrieves the outerText property of the current element object. get_parentElement Retrieves an interface pointer that provides access to the parent object's properties and methods. get_parentTextEdit Retrieves an object that can be used to create a text range that contains the original object. get_recordNumber Retrieves the ordinal record from the data set that generated the element. Applies to a bound, repeated table. get_sourceIndex Retrieves the ordinal position of the element in the source order. get_style Retrieves an inline style sheet for the tag. get_tagName Retrieves the tagName property of the current object. get_title Retrieves advisory information (a ToolTip) for the object. getAttribute Retrieves the value of the given attribute. insertAdjacentHTML Inserts the given HTML text into the element object at the given location. If the text contains HTML tags, the method parses and formats the text as it inserts. insertAdjacentText Inserts the given text into the element object at the given place. The method inserts the text as plain text. put_className Sets the value of the className property of the object. The property is typically used to associate a particular style rule in a style sheet with the object. put_id Sets the value of the id property for the object. put_innerHTML Sets the HTML between the start and end tags of the current element. put_innerText Sets the text between the start and end tags of the current element. put_lang Sets the language to use. put_language Sets the language that the current script is written in. put_onafterupdate Sets a pointer to the event handler function associated with the onafterupdate event on the object. put_onbeforeupdate Sets a pointer to the event handler function associated with the onbeforeupdate event on the object. put_onclick Sets a pointer to the event handler function associated with the onclick event on the object. put_ondataavailable Sets a pointer to the event handler function associated with the ondataavailable event on the object. put_ondatasetchanged Sets a pointer to the event handler function associated with the ondatasetchanged event on the object. put_ondatasetcomplete Sets a pointer to the event handler function associated with the ondatasetcomplete event on the object. put_ondblclick Sets a pointer to the event handler function associated with the ondblclick event on the object. put_ondragstart Sets a pointer to the event handler function associated with the ondragstart event on the object. put_onerrorupdate Sets a pointer to the event handler function associated with the onerrorupdate event on the object. put_onfilterchange Sets a pointer to the event handler function associated with the onfilterchange event on the object. put_onhelp Sets a pointer to the event handler function associated with the onhelp event on the object. put_onkeydown Sets a pointer to the event handler function associated with the onkeydown event on the object. put_onkeypress Sets a pointer to the event handler function associated with the onkeypress event on the object. put_onkeyup Sets a pointer to the event handler function associated with the onkeyup event on the object. put_onmousedown Sets a pointer to the event handler function associated with the onmousedown event on the object. put_onmousemove Sets a pointer to the event handler function associated with the onmousemove event on the object. put_onmouseout Sets a pointer to the event handler function associated with the onmouseout event on the object. put_onmouseover Sets a pointer to the event handler function associated with the onmouseover event on the object. put_onmouseup Sets a pointer to the event handler function associated with the onmouseup event on the object. put_onrowenter Sets a pointer to the event handler function associated with the onrowenter event on the object. put_onrowexit Sets a pointer to the event handler function associated with the onrowexit event on the object. put_onselectstart Sets a pointer to the event handler function associated with the onselectstart event on the object. put_outerHTML Replaces the current element object and its content with the given HTML. put_outerText Sets the outerText property of the current element object. put_title Sets advisory information (a ToolTip) for the object. removeAttribute Removes the given attribute from the element. scrollIntoView Scrolls the object into view, aligning it at either the top or bottom of the window. setAttribute Sets the value of the given attribute. If the attribute is not already present, the method adds the attribute to the element and sets the value. toString Retrieves a string representation of the element object.
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