BBjWebManager::getComputedStyle
Description
In BBj 23.00 and higher, this method returns the resolved value of a CSS property currently in effect on a selected element on the web page.
Note:
In BBj 22.03 and higher, BBjWebManager is an alias for BBjBuiManager.
Syntax
Return Value | Method |
---|---|
String | getComputedStyle(String property) |
string | getComputedStyle(string property, String selector) |
Parameters
Parameter | Description |
---|---|
property | Specifies the CSS property to be queried on the web page. |
selector | By default, getComputedStyle applies to the document element on the web page. If a selector is specified, it selects a descendant element within the document to query this CSS property. If a specified selector doesn't return any elements, the document element is used. |
Return Value
Returns the resolved value of the specified CSS property name that's currently in effect on the web page. To return a value that's explicitly set on the document or element, use BBjWebManager::getStyle.
Remarks
For more details, see CSS API and Window.getComputedStyle.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.