Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript">
setTimeout(function() {
'use strict';
var node = document.getElementById('toRemove');
node.classList.add('test');
node.parentNode.removeChild(node);
}, 5000);
</script>
</head>
<body>
<div>
<span>
<div></div>
<div></div>
</span>
<span>
<div id="toRemove">asdf</div>
<div></div>
</span>
<span>
<div></div>
<div></div>
</span>
</div>
<div>
<span>
<div></div>
<div></div>
</span>
<span>
<div></div>
<div></div>
</span>
<span>
<div></div>
<div></div>
</span>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment