JavaScript innerHTML property

The JavaScript innerHTML property is used to generate the dynamic HTML and is the easiest way to modify the content of an HTML element. The dynamic HTML can be a registration form, comment form, links, etc. Syntax 1: To change the content of an HTML element document.getElementById(id).innerHTML = new HTML Syntax 2: To get the … Read more