mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
24 lines
399 B
HTML
24 lines
399 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script>
|
|
function doit() {
|
|
var target = document.getElementById("target");
|
|
target.parentNode.removeChild(target);
|
|
}
|
|
</script>
|
|
<style>
|
|
body > span { border: 3px solid blue }
|
|
</style>
|
|
</head>
|
|
<body onload='doit()'>
|
|
<span>
|
|
One
|
|
<div id="target">Five</div>
|
|
Two
|
|
<div>Three</div>
|
|
Four
|
|
</span>
|
|
</body>
|
|
</html>
|