Actually the right way would be to edit the html code directly in the browser before it is outputted to the window. Below you will find a link to the source code (VC++ 6.0) of an IE plugin that allows you to inject a script into a page before it is outputted. Using a COM object you can access the DHTML output of IE directly.
Comment