textContent property
Sets or retrieves the text content of an object and any child objects.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Variant
The text content.
Standards information
See also
- a
- applet
- attribute
- audio
- button
- div
- document
- documentType
- frame
- iframe
- img
- input type=button
- input type=checkbox
- input type=email
- input type=file
- input type=hidden
- input type=image
- input type=number
- input type=password
- input type=radio
- input type=range
- input type=reset
- input type=search
- input type=submit
- input type=tel
- input type=text
- input type=url
- label
- legend
- marquee
- media
- object
- optGroup
- option
- ProcessingInstruction
- select
- source
- span
- table
- textArea
- TextNode
- video
Show:

