
Sets or retrieves the text of the current element.
object.outerText[ = outerText]
This read-write property can be any valid string. When setting this property, the given string completely replaces the original text in the element, except for <html>, <head>, and <title> tags.
Note You cannot set this property while the document is loading. Wait for the onload event before attempting to set it. If a tag is dynamically created using TextRange, innerHTML, or outerHTML, you can only use JScript to create new events to handle the newly formed tags. VBScript is not supported.
A, ACRONYM, ADDRESS, APPLET, AREA, B, BGSOUND, BIG, BLOCKQUOTE, BR, BUTTON, CENTER, CITE, CODE, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
insertAdjacentText method
Sets or retrieves the CSS overflow attribute for the element.
object.overflow[ = overflow]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the element that is next in the HTML hierarchy. This will usually contain the STYLE or LINK element that defined the style sheet.
object.owningElement
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Returns the CSS padding attribute.
object.padding[ = padding]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS padding-bottom attribute, which specifies the height of the padding at the bottom of the element.
object.paddingBottom[ = paddingBottom]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS padding-left attribute, which specifies the width of the padding at the left edge of the element.
object.paddingLeft[ = paddingLeft]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS padding-right attribute, which specifies the width of the padding at the right edge of the element.
object.paddingRight[ = paddingRight]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Sets the CSS padding-top attribute, which specifies the height of the padding at the top of the element.
object.paddingTop[ = paddingTop]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS page-break-after attribute, which specifies whether a page break occurs after the element. Applies when printing the document.
object.pageBreakAfter[ = pageBreakAfter]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS page-break-before attribute, which specifies whether a page break occurs before the element. Applies when printing the document.
object.pageBreakBefore[ = pageBreakBefore]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Specifies the palette used for the embedded document.
object.palette
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Returns the parent object in the object hierarchy.
object.parent
For a document, the parent is the containing window. For a window defined using FRAME, the parent is the window that contains the corresponding FRAMESET definition.
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Returns the parent element in the element hierarchy.
object.parentElement
The topmost element returns NULL as its parent.
This is a read-only property.
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Returns the style sheet that was used for importing style sheets. If a style sheet is at the top level (that is, it's a LINK or STYLE), parentStyleSheet returns NULL.
object.parentStyleSheet
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Returns the next element in the hierarchy that can be used to create a text range that contains the original element.
object.parentTextEdit
This read-only property is an element object if the parent exists. Otherwise, it is null.
The following example retrieves the parent element (if needed), creates the text range, moves to the original element, and selects the first word in the element.
<SCRIPT LANGUAGE="JScript"> function selectWord() { var el = window.event.srcElement ; if (!el.isTextEdit) el = window.event.srcElement.parentTextEdit; if (el != null) { var rng = el.createTextRange(); rng.moveToElementText(window.event.srcElement); rng.collapse(); rng.expand("word"); rng.select(); } } </SCRIPT>
A, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, XMP
Returns the window object for the document.
object.parentWindow
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Specifies the file or object path.
object.pathname[ = pathname]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Sets or retrieves the height of the element, in pixels. Unlike the height property, this property's value is an integer, not a string, and is always interpreted in pixels.
object.pixelHeight[ = pixelHeight]
This read-write property can be any integer value. Setting this property changes the value of the height without changing the units designator.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
Sets or retrieves the left position of the element, in pixels. Unlike the left property, this property's value is an integer, not a string, and is always interpreted in pixels.
object.pixelLeft[ = pixelLeft]
This read-write property can be any integer value. Setting this property changes the value of the left position without changing the units designator.
This property reflects the value of the CSS left attribute for positioned items. This property always returns zero for nonpositioned items since left does not mean anything unless the object is positioned. Use the offsetLeft property to calculate actual positions within the document area.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
Sets or retrieves the top position of the element, in pixels. Unlike the top property, this property's value is an integer, not a string, and is always interpreted in pixels.
object.pixelTop[ = pixelTop]
This read-write property can be any integer value. Setting this property changes the value of the top position without changing the units designator.
This property reflects the value of the CSS top attribute for positioned items. This property always returns zero for nonpositioned items since top does not mean anything unless the object is positioned. Use the offsetTop property to calculate actual positions within the document area.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
Sets or retrieves the width of the element, in pixels. Unlike the width property, this property's value is an integer, not a string, and is always interpreted in pixels.
object.pixelWidth[ = pixelWidth]
This read-write property can be any integer value. Setting this property changes the value of the height without changing the units designator.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
Indicates the platform that the browser is running on (for example, Win32®, Win16, WinCE, and so on).
object.platform
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Returns an empty collection for Internet Explorer 4.0. This property exists for compatibility with other browsers.
object.plugins
This property has read-only permission.
Specifies the plug-ins supporting this embedded document.
object.pluginspage
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Specifies the port number in a URL.
object.port[ = port]
If no port is specified, an empty string is returned.
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Sets and retrieves the height of the element in the units specified by the CSS height attribute. Unlike the height property, this property's value is a floating-point number, not a string.
object.posHeight[ = posHeight]
This read-write property takes any valid floating-point number. Setting this property changes the value of the height but leaves the units designator for the property unchanged.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
The following JScript example increases the height of the first IMG element by 10 units.
document.all.tags("IMG").item(0).style.posHeight += 10;
Specifies the CSS position attribute, which specifies the type of positioning used for the element.
object.position
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Sets and retrieves the left position of the element in the units specified by the CSS left attribute. Unlike the left property, this property's value is a floating-point number, not a string.
object.posLeft[ = posLeft]
This read-write property takes any valid floating-point number. Setting this property changes the value of the left position but leaves the units designator for the property unchanged.
This property reflects the value of the CSS left attribute for positioned items. This property always returns zero for nonpositioned items since left does not mean anything unless the object is positioned. Use the offsetLeft property to calculate actual positions within the document area.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
The following JScript example moves the first IMG element to the left by 10 units.
document.all.tags("IMG").item(0).style.posLeft -= 10;
Sets and retrieves the top position of the element in the units specified by the CSS top attribute. Unlike the top property, this property's value is a floating-point number, not a string.
object.posTop[ = posTop]
This read-write property takes any valid floating-point number. Setting this property changes the value of the top position but leaves the units designator for the property unchanged.
This property reflects the value of the CSS top attribute for positioned items. This property always returns zero for nonpositioned items since top does not mean anything unless the object is positioned. Use the offsetTop property to calculate actual positions within the document area.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
The following JScript example moves the first IMG element up by 10 units.
document.all.tags("IMG").item(0).style.posTop -= 10;
Sets and retrieves the width of the element in the units specified by the CSS width attribute. Unlike the width property, this property's value is a floating-point number, not a string.
object.posWidth[ = posWidth]
This read-write property takes any valid floating-point number. Setting this property changes the value of the width but leaves the units designator for the property unchanged.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
The following JScript example increases the width of the first IMG element by 10 units.
document.all.tags("IMG").item(0).style.posWidth -= 10;
Specifies the initial substring up to and including the first colon, which indicates the URL's access method.
object.protocol[ = protocol]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.