getElement(id, isParentopt) → (nullable) {HTMLElement|Window|Document}
Get an HTML element by the given id.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string | Array.<string> | An HTML element id or an array in the format ["CONTAINER"] (app's container HTML element), or in the format ["WINDOW"] (page's window object), or in the format ["DOCUMENT"] (page's document object), or in the format ["BODY"] (document's body element) or in the format ["QUERYSELECTOR"] (CSS selector string). | ||
isParent |
boolean |
<optional> |
false | Use the parent document/window to search for the element. |
Returns:
An HTML element, window,
document depending on the given "id" parameter or "null" if nothing was
found.
- Type
- HTMLElement | Window | Document