HTML DOM
GitHub 0★
Get or set the HTML of an element
Get the HTML
// Get the HTML
const
html
=
ele
.
innerHTML
;
Set the HTML
// Set the HTML
ele
.
innerHTML
=
'<h1>Hello World!</h1>'
;
See also
Count the number of characters of a textarea
Detect if the caps lock is on
Get size of the selected file
Get the text content of an element
Placeholder for a contenteditable element
Sort a table by clicking its headers
Strip html from a given text
Get or set the document title
Get, set and remove attributes