This is like the question
How to inject Javascript in WebBrowser control?
But i don’t know how to transform this code into good old MFC C++ code.
For example what is the InvokeScript method, i can’t find it anywhere.
Isn’t .NET webbrowser the same as IWebBrowser2 ?
You can find a CodeGuru article describing how to accomplish this here.