runtimeStyle object (Object/JScript)

A style that applies to an object at run-time and overrides other style settings.

Availability:

JScript - 5.0
Internet Explorer - 5.0
Inherits from:style object
JavaScript syntax:IEmyRuntimeStyle = myElement.runtimeStyle
Object methods:getAttribute(), getExpression(), removeExpression(), setAttribute(), setExpression()

This represents the cascaded format and style of its parent object. The value in this object overrides global style-sheets, inline styles and HTML tag attribute values. It overwrites the values provided by currentStyle objects but not those supplied by the style object.

The properties belonging to this object correspond closely to those of the style object and so there is little point in discussing them again here. Refer to the style object property descriptions for details of the various properties.

Because the style values are cascaded from style sheet to style sheet and may include some inline styles as well as some explicit styles, objects need to maintain a current style value that is the result of all the inheritances applied on top of one another.

In addition they maintain a run-time style which reflects dynamic changes as well. The runtimeStyle is based on the currentStyle originally.

See also:currentStyle object, Element.currentStyle, Element.runtimeStyle, style object (2)

MethodJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
getAttribute() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
getExpression() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
removeExpression() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
setAttribute() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-
setExpression() n/a5.0 5.0 n/a5.0 5.0 n/a n/a n/a n/a n/a n/a-