What are the properties of HTML DOM involved in the system?

What are the properties of HTML DOM involved in the system?



- innerHTML property is the property that allows easy modification of the content of an element in HTML.

- It allows the returning or replacing of the content in HTML or the elements like <html> or <head> used by it.

- It provides a way to use the page source and allows the way to dynamically modify those pages without manual effort.

- The properties like id, class and other individual properties of an element is involved in writing the HTML code.

- The example of it is shown below by using the <p> element properties as:

<html>
<body>
<p id="intro">Hello World!</p>
<script type="text/javascript">
txt=document.getElementById("intro").innerHTML;
document.write("<p>Hello world: " + txt + "</p>");
</script>
</body>
</html>
Post your comment