
HRESULT get_title(
BSTR *p
);
Retrieves the title of the style sheet.
The application of individual style sheets can be turned on and off dynamically. Note that the value of this property is also controlled by whether titled style sheets are applied.
See also put_title
HRESULT put_language(
BSTR v
);
Sets the language that the current script is written in.
| JScript | Specifies that the script is written in JScript. |
| Jscript | Specifies the language as JScript. |
| vbs | Specifies the language is VBScript. |
| vbscript | Specifies that the script is written in VBScript. |
See also get_language
HRESULT get_language(
BSTR *p
);
Retrieves the language that the current script is written in.
| JScript | Specifies that the script is written in JScript. |
| Jscript | Specifies the language as JScript. |
| vbs | Specifies the language is VBScript. |
| vbscript | Specifies that the script is written in VBScript. |
See also put_language
HRESULT put_onselectstart(
VARIANT v
);
Sets the inline script associated with the onselect event on the object.
See also get_onselectstart
HRESULT get_onselectstart(
VARIANT *p
);
Retrieves the inline script associated with the onselect event on the object.
See also put_onselectstart
HRESULT scrollIntoView(
VARIANT varargStart
);
Scrolls the object into view, aligning it at either the top or bottom of the window.
Depending on the size of the given object and the current window, this method might not be able to put the item at the very top or very bottom, but will always position the object as close to the requested position as possible.
HRESULT contains(
IHTMLElement *pChild,
VARIANT_BOOL *pfResult
);
Determines whether the given object is contained within the current object.
HRESULT get_sourceIndex(
long *p
);
Retrieves the ordinal position of the element in the source order.
HRESULT get_recordNumber(
VARIANT *p
);
Retrieves the ordinal record from the data set that generated the element. Applies to a bound, repeated table.
This property can be used in conjunction with the ADO recordset available from every data source object through the object's recordset property.
HRESULT put_lang(
BSTR v
);
Sets the language to use.
The parser can use this property to determine how to display language-specific choices for quotations, numbers, and so on.
See also get_lang
HRESULT get_lang(
BSTR *p
);
Retrieves the current language.
The parser can use this property to determine how to display language-specific choices for quotations, numbers, and so on.
See also put_lang
HRESULT get_offsetLeft(
long *p
);
Retrieves the calculated left position of the element, relative to the window.
HRESULT get_offsetTop(
long *p
);
Retrieves the calculated top position of the element, relative to the element's parent.
HRESULT get_offsetWidth(
long *p
);
Retrieves the width of the element relative to the document's top-left corner.
HRESULT get_offsetHeight(
long *p
);
Retrieves the height of the element, relative to the parent coordinate system.
HRESULT get_offsetParent(
IHTMLElement **p
);
Retrieves the container element object that defines the top and left offsets.
HRESULT put_innerHTML(
BSTR v
);
Sets the HTML between the start and end tags of the current element.
When setting this property, the given string completely replaces the existing content of the element. If the string contains HTML tags, the string is parsed and formatted as it is placed into the document.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See also get_innerHTML
HRESULT get_innerHTML(
BSTR *p
);
Retrieves the HTML between the start and end tags of the current element.
When setting this property, the given string completely replaces the existing content of the element. If the string contains HTML tags, the string is parsed and formatted as it is placed into the document.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See also put_innerHTML
HRESULT put_innerText(
BSTR v
);
Sets the text between the start and end tags of the current element.
When setting this property, the given string completely replaces the existing content of the element.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See also get_innerText
HRESULT get_innerText(
BSTR *p
);
Retrieves the text between the start and end tags of the current element.
When setting this property, the given string completely replaces the existing content of the element.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See also put_innerText
HRESULT put_outerHTML(
BSTR v
);
Replaces the current element object and its content with the given HTML.
When setting this property, the given string completely replaces the current element, including its start and end tags. If the string contains HTML tags, the string is parsed and formatted as it is placed into the document.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See also get_outerHTML
HRESULT get_outerHTML(
BSTR *p
);
Retrieves the current element object and its content in HTML.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See also put_outerHTML
HRESULT put_outerText(
BSTR v
);
Sets the outerText property of the current element object.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See also get_outerText
HRESULT get_outerText(
BSTR *p
);
Retrieves the outerText property of the current element object.
You cannot set this property while the document is loading. Wait for the onload event before attempting to set it.
See also put_outerText
HRESULT insertAdjacentHTML(
BSTR where,
BSTR html
);
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.
| BeforeBegin | Inserts the text immediately before the element. |
| AfterBegin | Inserts the text after the start of the element but before all other content in the element. |
| BeforeEnd | Inserts the text immediately before the end of the element but after all other content in the element. |
| AfterEnd | Inserts the text immediately after the end of the element. |
You cannot insert text while the document is loading. Wait for the onload event before attempting to call this method.
HRESULT insertAdjacentText(
BSTR where,
BSTR text
);
Inserts the given text into the element object at the given place. The method inserts the text as plain text.
| BeforeBegin | Inserts the text immediately before the element. |
| AfterBegin | Inserts the text after the start of the element but before all other content in the element. |
| BeforeEnd | Inserts the text immediately before the end of the element but after all other content in the element. |
| AfterEnd | Inserts the text immediately after the end of the element. |
You cannot insert text while the document is loading. Wait for the onload event before attempting to call this method.
HRESULT get_parentTextEdit(
IHTMLElement **p
);
Retrieves an object that can be used to create a text range that contains the original object.
HRESULT get_isTextEdit(
VARIANT_BOOL *p
);
Retrieves whether a text range object can be created using the given object.
Only the BODY, BUTTON, and TEXTAREA objects and an INPUT object having text input type can be used to create a text range object.
HRESULT click(void);
Simulates a click by causing the onclick event to fire.
HRESULT get_filters(
IHTMLFiltersCollection **p
);
Retrieves a collection of filter objects for an element.
HRESULT put_ondragstart(
VARIANT v
);
Sets the inline script associated with the ondragstart event on the object.
See also get_ondragstart
HRESULT get_ondragstart(
VARIANT *p
);
Retrieves the inline script associated with the ondragstart event on the object.
See also put_ondragstart
HRESULT toString(
BSTR *String
);
Retrieves a string representation of the element object.
HRESULT put_onbeforeupdate(
VARIANT v
);
Sets the inline script associated with the onbeforeupdate event on the object.
See also get_onbeforeupdate
HRESULT get_onbeforeupdate(
VARIANT *p
);
Retrieves the inline script associated with the onbeforeupdate event on the object.
See also put_onbeforeupdate
HRESULT put_onafterupdate(
VARIANT v
);
Sets the inline script associated with the onafterupdate event on the object.
See also get_onafterupdate
HRESULT get_onafterupdate(
VARIANT *p
);
Retrieves the inline script associated with the onafterupdate event on the object.
See also put_onafterupdate
HRESULT put_onerrorupdate(
VARIANT v
);
Sets the inline script associated with the onerrorupdate event on the object.
See also get_onerrorupdate
HRESULT get_onerrorupdate(
VARIANT *p
);
Retrieves the inline script associated with the onerrorupdate event on the object.
See also put_onerrorupdate
HRESULT put_onrowexit(
VARIANT v
);
Sets the inline script associated with the onrowexit event on the object.
See also get_onrowexit
HRESULT get_onrowexit(
VARIANT *p
);
Retrieves the inline script associated with the onrowexit event on the object.
See also put_onrowexit
HRESULT put_onrowenter(
VARIANT v
);
Sets the inline script associated with the onrowenter event on the object.
See also get_onrowenter
HRESULT get_onrowenter(
VARIANT *p
);
Retrieves the inline script associated with the onrowenter event on the object.
See also put_onrowenter
HRESULT put_ondatasetchanged(
VARIANT v
);
Sets the inline script associated with the ondatasetchanged event on the object.
See also get_ondatasetchanged
HRESULT get_ondatasetchanged(
VARIANT *p
);
Retrieves the inline script associated with the ondatasetchanged event on the object.
See also put_ondatasetchanged
HRESULT put_ondataavailable(
VARIANT v
);
Sets the inline script associated with the ondataavailable event on the object.
See also get_ondataavailable
HRESULT get_ondataavailable(
VARIANT *p
);
Retrieves the inline script associated with the ondataavailable event on the object.
See also put_ondataavailable
HRESULT put_ondatasetcomplete(
VARIANT v
);
Sets the inline script associated with the ondatasetcomplete event on the object.
See also get_ondatasetcomplete
HRESULT get_ondatasetcomplete(
VARIANT *p
);
Retrieves the inline script associated with the ondatasetcomplete event on the object.
See also put_ondatasetcomplete
HRESULT put_onfilterchange(
VARIANT v
);
Sets the inline script associated with the onfilterchange event on the object.
See also get_onfilterchange
HRESULT get_onfilterchange(
VARIANT *p
);
Retrieves the inline script associated with the onfilterchange event on the object.
See also put_onfilterchange
HRESULT get_children(
IDispatch **p
);
Retrieves the collection that contains all the immediate children of this object.
HRESULT get_all(
IDispatch **p
);
Retrieves the collection of all the objects in the HTML that are within the scope of this object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.