I've looked high and low for a way to remove certain elements from the DOM tree, but can not find any interface of mshtml or other fancy libraries of IE that provide a method to easily sack an element. For example, remove all images from the document.
Could someone please point me in the right direction
Also, is there an event in IE that is called before the document is rendered Or perhaps called right after the actual html is finished downloading
NavigateComplete2, DocumentComplete and DownloadComplete are not right for what I'm after.
- NavigateComplete2 fires too early (nothing is really parsed at this point).
- DocumentComplete fires too late (if the page contains media, then the browser renders the html and waits for the images, applets and flash content to complete before firing this one).
- DownloadComplete is just awkward. Its not firing at predictable times.
What I'm after is to remove a few elements BEFORE the html itself is rendered. Which event would be best for the job here
Thank you very much.

Manipulating DOM, Especially Removing Elements. And Choosing the Right Event