keyCode
Properties Reference

keyCode

Description

Specifies the Unicode key code associated with the key that caused the event. This property is intended to be used with the onkeydown, onkeyup, and onkeypress events.

Syntax

object.keyCode[ = keyCode]

Settings

This read-write property can be set to a Unicode key code. It is zero if no key caused the event.

Applies To

event


lang

Description

Specifies the language to use. The specifier is an ISO standard language abbreviation.

Syntax

object.lang[ = lang]

Remarks

The parser can use this property to determine how to display language-specific choices for quotations, numbers, and so on.

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

A, ACRONYM, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, 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, TITLE, TR, TT, U, UL, VAR, XMP


language

Description

Specifies the language that the current script is written in. JScript is the default for this attribute.

Syntax

object.language

Settings

This read-only property can refer to any scripting language. Internet Explorer 4.0 ships with a JScript (JavaScript-compatible) and VBScript scripting engine. Keywords for accessing these scripting languages include the following:

javascript Specifies that the script is written in JavaScript.
Jscript Specifies the language as JavaScript.
vbs Specifies the language as VBScript.
vbscript Specifies that the script is written in VBScript.

Applies To

A, ACRONYM, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP


lastModified

Description

Contains the last-modified date of the page (if the page supplies one).

Syntax

object.lastModified

Remarks

This property has read-only permission, meaning you can retrieve its current value, but not change it.

Applies To

document


left

Description

Sets or retrieves the CSS left attribute of the element.

Syntax

object.left[ = left]

Settings

The value of this read-write property is a string consisting of a floating-point number and a units designator, as described for cascading style sheets.

Remarks

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.

Applies To

style

CSS Attribute

left

See Also

pixelLeft, posLeft


leftMargin

Description

Specifies the left margin for the entire body of the page and overrides the default margin.

Syntax

object.leftMargin[ = leftMargin]

Settings

This read-write property is a string. If set to "", the left margin will be exactly on the left edge.

Applies To

BODY

See Also

topMargin


length

Description

Returns the number of elements in a collection. The window.length property returns the number of frames contained in a window.

Syntax

object.length

Remarks

This property is read-write on the areas and options collections and <SELECT> object, specifically for image maps and select boxes, respectively. This allows you to change the length of the collection as necessary.

In all other cases, this property has read-only permission, meaning you can retrieve its current value, but not change it.

Applies To

all, anchors, applets, areas, embeds, forms, frames, history, images, imports, links, plugins, scripts, SELECT, styleSheets, window

See Also

options collection


letterSpacing

Description

Returns the CSS letter-spacing attribute, which specifies letter spacing for the element.

Syntax

object.letterSpacing[ = letterSpacing]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

style

CSS Attribute

letter-spacing


lineHeight

Description

Specifies the CSS line-height attribute, which specifies line height, the distance between the baselines of subsequent lines of text. A negative line height is allowed to achieve various shadowing effects.

Syntax

object.lineHeight[ = lineHeight]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

style

CSS Attribute

line-height


link

Description

Returns the color of the document links. The color can be one of the color names or values given in Color Table.

Syntax

object.link[ = color]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

body

See Also

aLink, vLink


linkColor

Description

Returns the color of the document links. The color can be one of the color names or values given in Color Table.

Syntax

object.linkColor[ = color]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

document

See Also

alinkColor, vlinkColor


listStyle

Description

Returns the CSS list-style attribute, which specifies type, image, and position defined by the list style for the element.

Syntax

object.listStyle[ = listStyle]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

style

CSS Attribute

list-style


listStyleImage

Description

Returns the CSS list-style-image attribute, which specifies the image defined by the list style for the element.

Syntax

object.listStyleImage[ = listStyleImage]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

style

CSS Attribute

list-style-image


listStylePosition

Description

Returns the CSS list-style-position attribute, which specifies the position value of the list style for the element.

Syntax

object.listStylePosition[ = listStylePosition]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

style

CSS Attribute

list-style-position


listStyleType

Description

Returns the CSS list-style-type attribute, which specifies the type value of the list style for the element.

Syntax

object.listStyleType[ = listStyleType]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

style

CSS Attribute

list-style-type


location

Description

Returns information on the current URL. The href property contains the entire URL, and the other properties contain portions of it. The full list of properties includes hash, host, hostname, href, pathname, port, protocol, and search.

Syntax

object.location[ = location]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

document


loop

Description

Specifies how many times a sound or video will loop when activated. If applied to a marquee, it specifies how many times the content of the marquee should loop. If n=-1 or infinite, it will loop continuously.

Syntax

object.loop[ = loop]

Remarks

Following are descriptions on how loop works for some boundary cases.

<BGSOUND src="file:///c:\win95\system\msremind.wav"> once
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP> once
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=> zero times
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=-1> infinitely
<BGSOUND src="file:///c:\win95\system\msremind.wav" LOOP=0> once

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

BGSOUND, IMG, MARQUEE


lowsrc

Description

Specifies a lower resolution image to display.

Syntax

object.lowsrc[ = lowsrc]

Remarks

Setting the src attribute in code has the side effect of actually starting to load the new URL into the image area (and aborting the transfer of any image data that is already loading into the same area). Therefore, if you're going to alter the lowsrc property, you need to do so before setting the src property. If the URL in the src property references an image that is not the same size as the image cell it is loaded into, the source image is scaled to fit.

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

IMG


map

Description

Sets or returns the element representing the image map.

Syntax

object.map[ = map]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

IMG


margin

Description

Returns the CSS margin attribute, which specifies the width and height of the left, right, top, and bottom margins for the element.

Syntax

object.margin

Remarks

This property has read-only permission, meaning you can retrieve its current value, but not change it.

Applies To

style FIELDSET, LEGEND

CSS Attribute

margin


marginBottom

Description

Returns the CSS margin-bottom attribute, which specifies the height of the bottom margin for the element.

Syntax

object.marginBottom

Remarks

This property has read-only permission, meaning you can retrieve its current value, but not change it.

Applies To

style

CSS Attribute

margin-bottom


marginHeight

Description

Sets the top and bottom margins to the appropriate height before displaying the text in a frame.

Syntax

object.marginHeight[ = marginHeight]

Remarks

The value for the margin height is in pixels. Margins cannot be less than 1 nor so large that the text cannot be displayed.

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

FRAME, IFRAME

See Also

marginWidth


marginLeft

Description

Returns the CSS margin-left attribute, which specifies the width of the left margin for the element.

Syntax

object.marginLeft

Remarks

This property has read-only permission, meaning you can retrieve its current value, but not change it.

Applies To

style

CSS Attribute

margin-left


marginRight

Description

Returns the CSS margin-right attribute, which specifies the width of the right margin for the element.

Syntax

object.marginRight

Remarks

This property has read-only permission, meaning you can retrieve its current value, but not change it.

Applies To

style

CSS Attribute

margin-right


marginTop

Description

Returns the CSS margin-top attribute, which specifies the height of the top margin for the element.

Syntax

object.marginTop

Remarks

This property has read-only permission, meaning you can retrieve its current value, but not change it.

Applies To

style

CSS Attribute

margin-top


marginWidth

Description

Sets the amount the left and right margin should be set to before displaying the text in a frame.

Syntax

object.marginWidth[ = marginWidth]

Remarks

The value for margin width is in pixels. Margins cannot be less than 1 nor so large that the text cannot be displayed.

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

FRAME, IFRAME

See Also

marginHeight


maxLength

Description

Indicates the maximum number of characters that can be entered into a text control. This limits the user entry, not programmatic assignments to the value property.

Syntax

object.maxLength[ = maxLength]

Remarks

This value can be larger than the size of the text box. When this occurs, the text box should scroll accordingly as the user types. The default is no limit.

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

INPUT

See Also

size


media

Description

Sets the media type through the STYLE and LINK elements.

Syntax

object.media[ = media]

ParameterDescription
MEDIA Designed for rendering on these media. Default value is ALL.
SCREEN - Output is intended for nonpaged computer screens.
PRINT - Output is intended for paged, opaque material and for documents on screen viewed in print preview mode.
ALL - Applies to all devices.

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

LINK, STYLE


method

Description

Indicates how the form data should be sent to the server—either as GET or POST, which are the only legal values.

Syntax

object.method[ = method]

Settings

Possible values include;
get Append the arguments to the action URL and open it as if it were an anchor.
post Send the data through an HTTP post transaction.

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

FORM

See Also

action


Methods

Description

Specifies information about the functions that the user can perform on an object.

Syntax

object.Methods[ = Methods]

Remarks

These methods are more accurately given by the HTTP protocol when it is used, but it might, for reasons similar as for the title property, be useful to include the information in advance in the link. The HTML user agent can chose a different rendering as a function of the methods allowed; for example, something that is searchable might get a different icon.

The value of the property is a comma-separated list of HTTP methods supported by the object for public use.

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

A


mimeTypes

Description

Returns an empty collection for Internet Explorer 4.0. This property exists for compatibility with other browsers.

Syntax

object.mimeTypes

Remarks

This property has read-only permission.

Applies To

navigator


multiple

Description

Indicates that multiple items in the list can be selected.

Syntax

object.multiple[ = multiple]

Remarks

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.

Applies To

SELECT


name

Description

Specifies the name of a window or the frame so it can be targeted from links in other documents.

Syntax

object.name[ = name]

Settings

This read-write property takes either a window name or frame name, or one of these special values:

window_name A string that specifies a frame.
_blank Loads the link into a new, unnamed window.
_parent Loads the link over the parent. If the frame has no parent, this refers to _self.
_self Replaces the page with the specified link.
_top Loads the link at the topmost level.

The name property on the window comes from the FRAME definition. There is no other way to persist a window name in HTML.

Applies To

FRAME, IFRAME, window


name

Description

Specifies the name of the control, bookmark, or application.

Syntax

object.name[ = name]

Remarks

The name is used to bind the value of the control when submitting a form. The name is not the value that is displayed for the button, reset, and submit objects. Submitting the form submits the internally stored value, not the one displayed.

JScript allows the name to be changed at run time. This does not cause the name in the programming model to change in the collection of elements, but does change the name used for submitting elements.

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

A, APPLET, BUTTON, FORM, IMG, INPUT, LINK, MAP, META, OBJECT, SELECT, TEXTAREA


noHref

Description

Indicates that clicks in this region should cause no action.

Syntax

object.noHref[ = noHref]

Remarks

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.

Applies To

AREA


noResize

Description

Specifies whether the user can resize the frame.

Syntax

object.noResize[ = noResize]

Settings

This read-write property takes a Boolean value:

TRUE Frame size is fixed. User cannot resize it.
FALSE Frame is resizable. This is the default value for the property.

By default, all frames are resizable.

Applies To

FRAME, IFRAME


noShade

Description

Draws the horizontal rule without 3-D shading.

Syntax

object.noShade[ = noShade]

Remarks

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.

Applies To

HR

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.