
Prevents the browser from automatically performing word wrap.
object.noWrap[ = noWrap]
The default value for this property is FALSE.
This property has read-write permissions, meaning you can change as well as retrieve its current value.
References the contained object. For instance, if the control's object model uses a conflicting name space, preceding the control's property with object resolves the conflict.
object.object
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Specifies whether to use offscreen buffering. When the document is first loaded the value is a string, "auto", which allows Internet Explorer 4.0 to decide when offscreen buffering is used.
object.offscreenBuffering[ = Boolean]
This read-write property can be set to TRUE to enable offscreen buffering, and FALSE to disable it. The return type of the property, once it has been set, is a Boolean value.
Returns the height of the element, in pixels, relative to the parent coordinate system.
object.offsetHeight
Using a combination of offset* properties, you can determine the location, width, and height of an element by using the offsetLeft, offsetTop, offsetHeight, and offsetWidth properties. These numeric properties specify the physical coordinates and dimensions of the element relative to the element's offset parent. For example, the following document is a simple clock that adjusts the size of its readout to fit the current width and height of the document body.
<HTML> <HEAD><TITLE>A Simple Clock</TITLE> <SCRIPT LANGUAGE="JScript"> function startClock() { window.setInterval("Clock_Tick()", 1000); Clock_Tick(); } var ratio = 4; function Clock_Tick() { var s = Date(); var t = s.substring(11,19); var doc_height = document.body.offsetHeight; var doc_width = document.body.offsetWidth; if ((doc_height*ratio)>doc_width) doc_height = doc_width / ratio; document.all.MyTime.innerText = t; document.all.MyTime.style.fontSize = doc_height; } </SCRIPT> <BODY onload="startClock()"> <P ID="MyTime"> </P> </BODY> </HTML>This property has read-only permission, meaning you can retrieve its current value, but not change it.
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.
A, ACRONYM, ADDRESS, APPLET, AREA, B, 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, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Returns the calculated left position, in pixels, based on the window.
object.offsetLeft
Using a combination of offset* properties, you can determine the location, width, and height of an element by using the offsetLeft, offsetTop, offsetHeight, and offsetWidth properties. These numeric properties specify the physical coordinates and dimensions of the element relative to the element's offset parent. For example, the following document is a simple clock that adjusts the size of its readout to fit the current width and height of the document body.
<HTML> <HEAD><TITLE>A Simple Clock</TITLE> <SCRIPT LANGUAGE="JScript"> function startClock() { window.setInterval("Clock_Tick()", 1000); Clock_Tick(); } var ratio = 4; function Clock_Tick() { var s = Date(); var t = s.substring(11,19); var doc_height = document.body.offsetHeight; var doc_width = document.body.offsetWidth; if ((doc_height*ratio)>doc_width) doc_height = doc_width / ratio; document.all.MyTime.innerText = t; document.all.MyTime.style.fontSize = doc_height; } </SCRIPT> <BODY onload="startClock()"> <P ID="MyTime"> </P> </BODY> </HTML>This property has read-only permission, meaning you can retrieve its current value, but not change it.
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.
A, ACRONYM, ADDRESS, APPLET, AREA, B, 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, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Returns the container element object that defines the top and left offsets.
The offsetLeft and offsetTop property values are relative to the element specified by the offsetParent property for the element. Most of the time the property returns BODY. For example, in the following document, even though the TD element appears to the far right in the document, its position is (0,0) because its offset parent is TR, not the document body.
<HTML> <HEAD><TITLE>Elements: Positions</TITLE></HEAD> <SCRIPT LANGUAGE="JScript"> function showPosition() { var el = document.all.MyID; alert("The TD element is at (" + el.offsetLeft + "," + el.offsetTop + ")\n" + "The offset parent is " + el.offsetParent.tagName ); } </SCRIPT> <BODY onload="showPosition()"> <P>This document contains a right-aligned table. <TABLE BORDER=1 ALIGN=right> <TR><TD ID=MyID>This is a small table </TABLE> </BODY> </HTML>
object.offsetParent
This property has read-only permission.
A, ACRONYM, ADDRESS, APPLET, AREA, B, 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, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Returns the calculated top position of the element in the element's parent coordinates.
object.offsetTop
Using a combination of offset* properties, you can determine the location, width, and height of an element by using the offsetLeft, offsetTop, offsetHeight, and offsetWidth properties. These numeric properties specify the physical coordinates and dimensions of the element relative to the element's offset parent. For example, the following document is a simple clock that adjusts the size of its readout to fit the current width and height of the document body.
<HTML> <HEAD><TITLE>A Simple Clock</TITLE> <SCRIPT LANGUAGE="JScript"> function startClock() { window.setInterval("Clock_Tick()", 1000); Clock_Tick(); } var ratio = 4; function Clock_Tick() { var s = Date(); var t = s.substring(11,19); var doc_height = document.body.offsetHeight; var doc_width = document.body.offsetWidth; if ((doc_height*ratio)>doc_width) doc_height = doc_width / ratio; document.all.MyTime.innerText = t; document.all.MyTime.style.fontSize = doc_height; } </SCRIPT> <BODY onload="startClock()"> <P ID="MyTime"> </P> </BODY> </HTML>This property has read-only permission, meaning you can retrieve its current value, but not change it.
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.
A, ACRONYM, ADDRESS, APPLET, AREA, B, 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, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Returns the width of the element relative to the document's top-left corner.
object.offsetWidth
Using a combination of offset* properties, you can determine the location, width, and height of an element by using the offsetLeft, offsetTop, offsetHeight, and offsetWidth properties. These numeric properties specify the physical coordinates and dimensions of the element relative to the element's offset parent. For example, the following document is a simple clock that adjusts the size of its readout to fit the current width and height of the document body.
<HTML> <HEAD><TITLE>A Simple Clock</TITLE> <SCRIPT LANGUAGE="JScript"> function startClock() { window.setInterval("Clock_Tick()", 1000); Clock_Tick(); } var ratio = 4; function Clock_Tick() { var s = Date(); var t = s.substring(11,19); var doc_height = document.body.offsetHeight; var doc_width = document.body.offsetWidth; if ((doc_height*ratio)>doc_width) doc_height = doc_width / ratio; document.all.MyTime.innerText = t; document.all.MyTime.style.fontSize = doc_height; } </SCRIPT> <BODY onload="startClock()"> <P ID="MyTime"> </P> </BODY> </HTML>This property has read-only permission, meaning you can retrieve its current value, but not change it.
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.
A, ACRONYM, ADDRESS, APPLET, AREA, B, 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, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP
Returns container relative positions. These match the offsetLeft and offsetTop properties of the element. Use offsetParent to find the container element that defines this coordinate system.
object.offsetX
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Returns container relative positions. These match the offsetLeft and offsetTop properties of the element. Use offsetParent to find the container element that defines this coordinate system.
object.offsetY
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Indicates whether or not the system is in global offline mode.
object.onLine
True indicates the system is in global online mode. False indicates the system is in global offline mode. This property has read-only permission, meaning you can retrieve its current value, but not change it.
The user can modify the global offline state by selecting the Work Offline item from the Internet Explorer 4.0 File menu. This property does not indicate whether or not the system is physically connected to the network.
Returns a reference to the window that created the current window.
object.opener[ = opener]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Sets or retrieves the current element and its content in HTML.
object.outerHTML[ = outerHTML]
This read-write property can be any valid string containing a combination of text and HTML tags, except for <html>, <head>, and <title> tags.
When setting this property, the given string completely replaces the 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.
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
insertAdjacentHTML method
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.