HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

innerText

Description

The innerText of HTMLElement for JS returns the element's text content "as rendered".

Can be set, to replace the element's children with the given value, but with line breaks converted to br elements.

Syntax

element.innerText [ = value ]

Examples

1 · get

2 · set