0

How can i can get/capture the value of a JavaScript object on the page rendered in a webbrowser control, or alternatively capture the return value of a function?

The only example I saw is the following in delphi. Looking for a better solution in C#

http://www.delphidabbler.com/articles?article=21

2 Answers 2

2

You need the InvokeScript call of HtmlDocument. MSDN documentation on ObjectForScripting

Sign up to request clarification or add additional context in comments.

Comments

0

One piece of info missing is what you want to capture it to. I personally use Firefox with Firebug. It allows you to use the Javascript command console.log(object); to log an object to the Firebug console. Same applies for function return values, console.log(myFunc());.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.