window get dom value javascript code example
Example 1: how to get an element by id in javascript
document.getElementById("IdGoesHere");
Example 2: java script remowechild an element from the DOM
let node = document.getElementById("nested");
if (node.parentNode) {
node.parentNode.removeChild(node);
}