Modify the Firefox Content

Rajmohan SK <[email protected]> Fri, 21 May 2010 23:22:09 -0700 (PDT)
Newsgroups gmane.comp.mozilla.accessibility
Organization http://groups.google.com
Message-ID <cfce944c-0521-4096-bf77-b646c98ac500@a27g2000prj.googlegroups.com>
I got the window handle of firefox, currently executing,. What is best
approach by which I can modify the window content. I have gone through
geckoSDK, XpCom, ISimpleDOMDocument,ISimpleDOMNode, ISimpleDOMText
etc.
Still I as not able to find a better solution ,

I have a clear concept of  ISimpleDOMDocument,ISimpleDOMNode,
ISimpleDOMText these pointers. But these pointer doesnt have a
function to clear the window content. Please anybody let me know how
can I do this.