The As a getter, it approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied it to the clipboard. As a setter this will replace the element's
children with the given value, converting any line breaks into Note: ValueA string representing the rendered text content of an element. If the element itself is not being rendered (for example, is detached from the document or is hidden from view), the
returned value is the same as the Warning: Setting Examples This example compares HTML
JavaScript
ResultSpecifications
Browser compatibilityBCD tables only load in the browser See also |