WebBrowser1.Document.Window.Frames(0).Frames(3).Frames(4)
WebBrowser1.Document.Window.Frames(0).Frames(3).Frames(4).Document.Body.InnerText
object[] codeString = {"aVariable;"};
In C# string result = webBrowser1.Document.InvokeScript("eval",codeString);
you can refer to below article on ways to invoke particular functions of javascript.