I need a function like this:
document.getElementsByTagName("div").addEventListener("mouseover", mouseOver);
function mouseOver() {
document.getElementsByTagName("div").remove;
}
<div style="width: 100px; height: 100px; background-color: red; position: absolute"></div>
So I have to select tag names and remove them on mouseover. How is it possible to code this?