>Maybe if you have the script function in the
html header you can fire it with DOM,like :WebBrowser.Document.Script.MyFunction, after you are filling the document with new data/innerHTML.
Well, I did try this approach as well. While nothing was changing, I checked the WebBrowser.Document.Body.OuterHTML and found that my HEAD element was missing. So, I tried WebBrowser.Document.DocumentElement.OuterHTML and I was seeing the HEAD element but only the default. It seems that when an InnerHTML is associated to a Web Browser control, whatever is HEAD written is not processed. So, that approach didn't work as well.