Sys.UI.DomElement Class

Defines static methods and properties that provide helper APIs for manipulating and inspecting DOM elements.

Namespace: Sys.UI

Inherits: None

var domElementVar = Sys.UI.DomElement.getElementById(strDomElementID)

Name

Description

Sys.UI.DomElement Constructor

Initializes a new instance of the Sys.UI.DomElement class.

Name

Description

Sys.UI.DomElement addCssClass Method

Adds a CSS class to a DOM element if the class is not already part of the DOM element.

Sys.UI.DomElement containsCssClass Method

Gets a value that indicates whether the DOM element contains the specified CSS class.

Sys.UI.DomElement $get Method

Provides a shortcut to the getElementById method of the Sys.UI.DomElement class

Sys.UI.DomElement getBounds Method

Gets a set of integer coordinates that represent the position, width, and height of a DOM element.

Sys.UI.DomElement getElementById Method

Gets a DOM element that has the specified id attribute.

Sys.UI.DomElement getLocation Method

Gets the absolute position of a DOM element relative to the upper-left corner of the owner frame or window.

Sys.UI.DomElement getVisibilityMode Method

Returns a value that represents the layout characteristics of a DOM element when it is hidden by invoking the Sys.UI.DomElement.setVisible method.

Sys.UI.DomElement getVisible Method

Gets a value that indicates whether a DOM element is currently visible on the Web page.

Sys.UI.DomElement removeCssClass Method

Removes a CSS class from a DOM element.

Sys.UI.DomElement setLocation Method

Sets the position of a DOM element.

Sys.UI.DomElement setVisibilityMode Method

Sets the layout characteristics of a DOM element when it is hidden by invoking the Sys.UI.DomElement.setVisible method.

Sys.UI.DomElement setVisible Method

Sets a DOM element to be visible or hidden.

Sys.UI.DomElement toggleCssClass Method

Toggles a CSS class in a DOM element.

You cannot instantiate the DomElement class.

The following example shows how to use the DomElement class. As an alternative to adding the click handler to a button, you could add a pageLoad handler to the body element.

No code example is currently available or this language may not be supported.
Show: