6. Element class
Introduction
The objects of type Element are created for each input element with a ref-as attribute, or are obtained from the Document itself. It implements a subset of the DOM class HtmlElement.
Attributes
childNodes |
Collection |
Vector of children elements. |
disabled |
bool |
Indicator whether the element is disabled or not. |
id |
string |
Id attribute of the element. |
tagName |
string |
Element's tag. |
parentNode |
Item |
Parent element. |
Methods
getAttribute |
name: string returns string |
Gets the attribute value of the element. |
setAttribute |
name: string value: string |
Updates the attribute value. |
removeAttribute |
name: string |
Removes an attribute. |
getElementsByTagName |
tag: string returns Collection |
Find all children with the specified tag. |
click |
|
Acts as if the user had clicked on the button. |
blur |
|
Remove focus. |
focus |
|
Grants focus. |
submit |
|
Send form contents. |