Set Text Content
element.setTextContent(content)
Set text content for an element that supports text content.
Syntax
Parameters
content
:string
- Text to add to the element
Returns
Promise<null
>
A Promise that resolves to null
.