JavaScript: remove element by id
<p>When removing an element with standard JavaScript, you must go to it's parent first:</p>

<pre><code>element = document.getElementById("element-id");
element.parentNode.removeChild(element);
</code></pre>

<p>Having to go to the parent node first seems a bit odd to me, is there a reason JavaScript works like this?</p>
