Check out example codes for "HtmlDocument document = webBrowser1.Document; string scriptName = "GetText"; object[] args = new string[0]; object obj = document.InvokeScript(scriptName, args); string script = obj.ToString();". It will help you in understanding the concepts better.
Code Example 1
HtmlDocument document = webBrowser1.Document;
string scriptName = "GetText";
object[] args = new string[0];
object obj = document.InvokeScript(scriptName, args);
string script = obj.ToString();
Learn ReactJs, React Native from akashmittal.com