I am trying to read the value of a Javascript variable which is loaded and called from a WebBrowser control on my form.
Example:
index.html refers to a javascript called 'test.js' On test.js, several variables are created and populated.
index.html then makes a call to this JS.
Index.html is loaded and displayed into the WebBrowser control.
I've found lots of help on how to call/invoke functions that reside in the web browser control. How how can I easily read a variable value?
You could do:
Document.InvokeScript("eval", new object[] { "my_var_name" });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With