element()
element(
tagName
,className
):HTMLElement
&any
Creates an instance of the element for the specified tag, and optionally assigns it a CSS class.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
tagName | string | undefined | The name of an element. |
className | null | string | null |
Returns
HTMLElement
& any