Site Archives Code Examples

The Unforgiving DOM, How to Remove an Object from the DOM


This morning when working on some user interface pieces, I came upon a situation that required me to remove an HTML element (in this case a tag) from the page.  Not just hide it, but delete it completely.  This, of course, is done through the Document Object Model.The cross-browser way to accomplish this is as such, […]