
Returns the CSS border-left-style attribute, which specifies the style of the left border.
object.borderLeftStyle[ = borderLeftStyle]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-left-width attribute, which specifies the width of the left border.
object.borderLeftWidth[ = borderLeftWidth]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-right attribute, which specifies the color, style, and width of the right border.
object.borderRight[ = borderRight]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-right-color attribute, which specifies the color of the right border. The color can be one of the color names or values given in Color Table.
object.borderRightColor[ = color]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-right-style attribute, which specifies the style of the right border.
object.borderRightStyle[ = borderRightStyle]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-right-width attribute, which specifies the width of the right border.
object.borderRightWidth[ = borderRightWidth]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-style attribute, which specifies the style of the left, right, top, and bottom borders.
object.borderStyle[ = borderStyle]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-top attribute, which specifies the color, style, and width of the top border.
object.borderTop[ = borderTop]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-top-color attribute, which specifies the color of the top border. The color can be one of the color names or values given in Color Table.
object.borderTopColor[ = color]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-top-style attribute, which specifies the style of the top border.
object.borderTopStyle[ = borderTopStyle]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-top-width attribute, which specifies the width of the top border.
object.borderTopWidth[ = borderTopWidth]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the CSS border-width attribute, which specifies the width of the left, right, top, and bottom border.
object.borderWidth[ = borderWidth]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Specifies the bottom margin for the entire body of the page and overrides the default margin.
object.bottomMargin[ = bottomMargin]
This read-write property takes a string representation of a decimal number. If set to "", the bottom margin will be exactly on the bottom edge.
Indicates the current browser language. For possible return values, see Language Codes.
object.browserLanguage
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Specifies an offscreen bitmap buffer.
object.bufferDepth[ = bufferDepth]
This read-write property can have these values:
- 0
- No explicit buffering. The colorDepth property is set to the screen depth.
- -1
- Perform buffering at the screen depth. colorDepth is set to the screen depth.
- 1, 4, 8, 15, 16, 24, or 32
- Perform buffering using the given bits-per-pixel. colorDepth is also set to this value. The value 15 specifies 16 bits-per-pixel, in which only 15 bits are used in a 5-5-5 layout of RGB values.
Nonsupported values cause bufferDepth to be set to -1.
When bufferDepth is -1 and the user changes system settings that affect the screen depth, the buffer depth is automatically updated to the new depth. This is not the case if you set bufferDepth to a specific value.
Specifies which mouse button, if any, is pressed.
object.button
This read-only property has one of these values:
0 No button. 1 Left button is pressed. 2 Right button is pressed. 4 Middle button is pressed. This property is intended to be used with the onmousedown, onmouseup, and onmousemove events. For other events, it typically is zero regardless of the state of the mouse buttons.
Specifies whether the current event should bubble up the hierarchy of event handlers.
object.cancelBubble[ = cancelBubble]
This read-write property takes a Boolean value:
TRUE Cancels bubbling for this event, preventing the next event handler in the hierarchy from receiving the event. FALSE Enables bubbling. This is the default value. Using this property to cancel bubbling for an event does not affect subsequent events.
The following document fragment cancels bubbling of the onclick event if it occurs in the IMG element when the SHIFT key is down. This prevents the event from bubbling up to the onclick event handler for the document.
<SCRIPT LANGUAGE="JScript"> function checkCancel() { if (window.event.shiftKey) window.event.cancelBubble = true; } function showSrc() { if (window.event.srcElement.tagName == "IMG") alert(window.event.srcElement.src); } </SCRIPT> <BODY onclick="showSrc()"> <IMG onclick="checkCancel()" SRC="sample.gif">
Points to the CAPTION element in the TABLE. If none exist, it is null.
object.caption[ = element]
This property has read-only permission.
The following example sets the inline style for the CAPTION.
document.all.myTable.caption.style.color = "blue"
table
Indicates the element's position in the cells collection of a given row. Collection indexes are in the source order of the HTML document. Note that when a cell spans multiple rows, that cell only appears in the cells collection for the first of the rows that the cell spans.
object.cellIndex[ = element]
This property has read-only permission.
Specifies the amount of space between the border of the cell and the content of the cell.
object.cellPadding[ = cellPadding]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Specifies the amount of space between cells in a table.
object.cellSpacing[ = cellSpacing]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Sets or returns the character set of the document.
object.charset[ = charset]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Specifies whether the given check box or radio button is selected.
object.checked[ = checked]
This read-write property takes a Boolean value. It is TRUE if the control is selected, or FALSE otherwise. The default value for this property is FALSE.
Check boxes that are not selected do not return their values when the form is submitted.
Specifies the class identifier for the object.
object.classid
The format is: classid="clsid:controlspecificclsid "
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Specifies the class of the given element. The class is typically used to associate a particular style rule in a style sheet with the element.
object.className[ = className]
This read-write property takes any valid string. By default, the property is equal to the string assigned to the CLASS= attribute of the given element, or is an empty string if the attribute is not explicitly assigned.
A, ACRONYM, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, 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 CSS clear attribute, which specifies whether the element allows floating elements on its left and/or right sides.
object.clear[ = clear]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Inserts vertical space so that the next text displayed will be past left-aligned or right-aligned floating images.
object.clear[ = clear]
Possible values include:
all left right
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the height of the element, in pixels. This height does not take into account any margin, border, scroll bar, or padding that might have been applied to the element.
object.clientHeight
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.
APPLET, BODY, BUTTON, CAPTION, DIV, EMBED, FIELDSET, IMG, INPUT, LEGEND, MARQUEE, OBJECT, SPAN, TABLE, TD, TEXTAREA, TR
Returns the navigator object. You use this to retrieve information about the version and name of the browser, as well as whether certain features are enabled.
object.clientInformation
The following JScript example checks whether the user agent name of the browser contains "MSIE". If it does, the browser is Microsoft® Internet Explorer.
if (window.clientInformation.userAgent.indexOf( "MSIE " ) > 0) // is Microsoft Internet ExplorerThe following JScript example checks whether Java applets can be run.
if (window.clientInformation.javaEnabled() == true ) // Java is enabled, applets can run
Returns the distance between the offsetLeft and the true left side of the client area, in pixels. The difference between the offsetLeft and clientLeft is the border of the element.
object.clientLeft
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.
APPLET, BODY, BUTTON, CAPTION, DIV, EMBED, FIELDSET, IMG, INPUT, LEGEND, MARQUEE, OBJECT, SPAN, TABLE, TD, TEXTAREA, TR
Returns the distance between the offsetTop and the true top of the client area, in pixels. The difference between the offsetTop and the clientTop is the border area of the element.
object.clientTop
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.
APPLET, BODY, BUTTON, CAPTION, DIV, EMBED, FIELDSET, IMG, INPUT, LEGEND, MARQUEE, OBJECT, SPAN, TABLE, TD, TEXTAREA, TR
Returns the width of the element, in pixels. This width does not take into account any margin, border, scroll bar, or padding that might have been applied to the element.
object.clientWidth
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.
APPLET, BODY, BUTTON, CAPTION, DIV, EMBED, FIELDSET, IMG, INPUT, LEGEND, MARQUEE, OBJECT, SPAN, TABLE, TD, TEXTAREA, TR
Returns the position of the mouse hit relative to the size of the client area of the window. This does not include window decorations or scroll bars.
object.clientX
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Returns the position of the mouse hit relative to the size of the client area of the window. This does not include window decorations or scroll bars.
object.clientY
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Returns the CSS clip attribute, which specifies which part of the element is visible.
object.clip[ = clip]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns whether the referenced window is closed.
object.closed
This read-only property is TRUE if the window is closed, or FALSE otherwise.
Specifies the name of the file containing the compiled Java class.
object.code
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Specifies a URL referencing where to find the implementation of the object.
object.codeBase
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Specifies the base URL for the application. This is an optional parameter.
object.codeBase
This property has read-only permission, meaning you can retrieve its current value, but not change it.
Specifies the Internet media type for the code associated with the object.
object.codeType[ = codeType]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Sets the color to be used by the font or horizontal rule. The color can be one of the color names or values given in Color Table.
object.color[ = color]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Sets or retrieves the CSS color attribute of the element. The color can be one of the color names or values given in Color Table.
object.color[ = color]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Returns the bits-per-pixel value used for colors on the destination device or buffer. Script programmers use this value when deciding how best to use colors.
object.colorDepth
The value of this read-only property depends on the bufferDepth property. If bufferDepth is 0 or -1, colorDepth is equal to the bits-per-pixel value for the screen or printer. If bufferDepth is nonzero, colorDepth is equal to bufferDepth.
The following JScript example picks foreground and background colors based on the color depth of the screen.
if (screen.colorDepth > 2) { document.body.bgColor = "white"; document.body.color = "blue"; } else { document.body.bgColor = "black"; document.body.color = "white"; }
Specifies how many characters wide the text area is.
object.cols[ = cols]
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Specifies the number of columns in the table.
object.cols[ = cols]
Providing this number can speed up the processing of the table.
This property has read-write permissions, meaning you can change as well as retrieve its current value.
Specifies a comma-delimited list of frames to create. Each item in the list contains the initial size of the column.
object.cols[ = cols]
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.