Table 4-16.Methods of the Sys.UI.DomElement Class
Method Name Description
addCssClass Adds a CSS class to a DOM element
containsCssClass Returns a value indicating whether or not the DOM element contains
the specified CSS class
getBounds Returns the Bounds object for a specified DOM element
getElementById Returns a DOM element by ID (the $get shortcut is mapped to this
method)
getLocation Returns the absolute position of a DOM element
removeCssClass Removes a CSS class from a DOM element
setLocation Sets the position of a DOM element
toggleCssClass Toggles a CSS class in a DOM element
To better illustrate a few of the methods of the Sys.UI.DomElement class, consider the
following markup:
CHAPTER 4 ?– ASP.
Pages:
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136