JavaScript: innerHTML
innerHTML reads or replaces the markup inside an element.
panel.innerHTML = '<strong>Ready</strong>';Because the string is parsed as HTML, never insert untrusted content directly. Prefer textContent for plain text.
innerHTML reads or replaces the markup inside an element.
panel.innerHTML = '<strong>Ready</strong>';Because the string is parsed as HTML, never insert untrusted content directly. Prefer textContent for plain text.