Properties

This section contains a list of Document Object Model (DOM) style properties.

In this section

PropertyDescription

availHeight

Gets the height of the working area of the system's screen, excluding the Windows taskbar.

availWidth

Gets the width of the working area of the system's screen, excluding the Windows taskbar.

blockDirection

Gets a string value that indicates whether the content in the block element flows from left to right, or from right to left.

bufferDepth

Gets or sets the number of bits per pixel used for colors in the off-screen bitmap buffer.

clip

Specifies which part of a positioned object is visible.

clipBottom

Gets the bottom coordinate of the object clipping region.

clipLeft

Gets the left coordinate of the object clipping region.

clipRight

Gets the right coordinate of the object clipping region.

clipTop

Gets the top coordinate of the object clipping region.

colorDepth

Gets the number of bits per pixel used for colors on the destination device or buffer.

constructor

Gets a reference to the constructor of a screen object.

crossOrigin

Specifies whether to use Cross-Origin Resource Sharing (CORS) when fetching an image from a site outside the webpage's domain.

msContentZoomFactor

Specifies the content zoom factor.

cssFloat

Sets or retrieves a value that specifies whether a box should float to the left, right, or not at all.

cssRules

Retrieves a list of all Cascading Style Sheets (CSS) rules contained within the parent object.

cssText

Sets or retrieves the persisted representation of the style rule.

devicePixelRatio

Gets the device resolution (the ratio between physical device pixels and DPI-adjusted logical CSS pixels).

deviceXDPI

Gets the actual number of horizontal dots per inch (dpi) of the system's screen.

deviceYDPI

Gets the actual number of vertical dpi of the system's screen.

fontSmoothingEnabled

Gets whether the user has enabled font smoothing in the Display control panel.

fontWeight

Gets the numeric weight of the font of the object.

hasLayout

Gets a value that indicates whether the object has layout.

height

Gets the vertical resolution of the screen.

href (CSSImportRule Object)

Retrieves the location of the style sheet to be imported.

href (styleSheet Object)

Sets or retrieves the URL of the linked style sheet.

imports

Gets the collection of imported style sheets.

isAlternate

Retrieves a value that indicates whether the IHTMLStyleSheet3 object is an alternative style sheet.

isPrefAlternate

Retrieves a value that indicates whether the IHTMLStyleSheet3 object is the preferred style sheet.

item (CSSStyleDeclaration Object)

Gets a property that has been explicitly set in the current declaration block.

length

Retrieves the number of properties that are explicitly set on the parent object.

logicalXDPI

Gets the normal number of horizontal dots per inch (DPI) of the system's screen.

logicalYDPI

Gets the normal number of vertical dots per inch (DPI) of the system's screen.

media (CSSImportRule Object)

Sets or retrieves a list of media types for which this style sheet is used.

media (CSSMediaRule Object)

Sets or retrieves a list of media types for this rule.

media (styleSheet Object)

Sets or retrieves the media type.

mediaText

Sets or retrieves the parsable textual representation of the current media list.

msOrientation

Gets the orientation of the screen.

namespaceURI

Retrieves the namespace of the @namespace rule.

ownerNode

Retrieves the node that associates this style sheet with the document.

ownerRule

Retrieves a value that indicates whether this style sheet comes from an @import rule or a link (an element or processing instruction).

owningElement

Retrieves the next object in the HTML hierarchy.

pages

Gets a collection of page rules for the style sheet.

parentRule

Retrieves the containing rule, if the current rule is contained inside another rule.

parentStyleSheet (CSSRule Object)

Retrieves the style sheet that contains the current rule.

parentStyleSheet (styleSheet Object)

Retrieves the style sheet that imported the current style sheets.

pixelDepth

Gets the number of bits per pixel that is used for colors on the destination device or buffer.

prefix

Retrieves the prefix of the @namespace rule or null if there is no prefix.

pseudoClass

Retrieves a string that identifies the pseudo class of the page or pages an @page rule applies to.

readOnly

Retrieves whether the rule or style sheet is defined on the document or is imported.

rules

Retrieves a collection of rules defined in a style sheet.

selector

Retrieves a string that identifies which page or pages an @page rule applies to.

selectorText (rule Object)

Retrieves a string that identifies which elements the corresponding style sheet rule applies to.

selectorText (style Object)

Sets or retrieves a value that represents the textual representation of the selector for the rule set.

sheet

Gets the CSS style sheet that is associated with the object.

style

Retrieves the declaration block of the current rule.

styleMedia

Gets a StyleMedia object that contains methods and properties. These methods and properties determine the media types that are supported by the object that displays the document object.

styleSheet

Note  For the style element, styleSheet is no longer supported. Starting with Internet Explorer 11, use sheet. For info, see Compatibility changes.

Retrieves an interface pointer that provides access to the style sheet object's properties and methods.

styleSheets

Gets the collection of style sheets for the document.

systemXDPI

Gets the number of horizontal dpi of display resolution at normal zoom level.

systemYDPI

Gets the number of vertical dpi of display resolution at normal zoom level.

textDecorationBlink

Sets or retrieves a Boolean value that indicates whether the object's textDecoration property has a value of "blink."

This property is not supported for Windows Store apps using JavaScript.

textDecorationLineThrough

Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn through it.

textDecorationNone

Sets or retrieves the Boolean value indicating whether the textDecoration property for the object has been set to none.

textDecorationOverline

Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn over it.

textDecorationUnderline

Sets or retrieves whether the text in the object is underlined.

title

Sets or retrieves the title of the style sheet.

type (CSSRule Object)

Retrieves the type of the rule.

type (style Object)

Retrieves the CSS language in which the style sheet is written.

type (styleSheet Object)

Retrieves the CSS language in which the style sheet is written.

updateInterval

Gets or sets the update interval for the screen.

usedCharset

Gets the character set used to decode the current document.

viewInheritStyle

Sets or retrieves a value that indicates whether the document fragment inherits the CSS styles set in the primary document.

width

Gets the horizontal resolution of the screen.

x

The horizontal position of the point.

y

The vertical position of the point.

 

 

 

Show:
© 2014 Microsoft