what is dom manipulation code example
Example 1: javascript dom manipulation
var newDiv = document.createElement('div');
newDiv.innerHTML = '<p>Hello World!</p>';
document.body.appendChild(newDiv);
Example 2: DOM
<body onload="window.alert('Welcome to my home page!');">