
BBjWebManager::hasAttribute
Description
In BBj 26.02 and higher, this method returns a boolean value indicating whether the selected element has the specified attribute.
Note:
In BBj 22.03 and higher, BBjWebManager is an alias for BBjBuiManager.
Syntax
| Return Value | Method |
|---|---|
|
void |
hasAttribute(String attribute) hasAttribute(String attribute, String selector) |
Parameters
| Parameter | Description |
|---|---|
|
attribute |
Specifies the name of an attribute. |
|
selector |
By default, hasAttribute 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 attribute. If a specified selector doesn't return any elements, the default document element is used. |
Return Value
Returns a boolean value indicating whether the selected element has the specified attribute.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.