I'm using TWebBrowser component of Delphi to create a system that interacts with the site. So far so good, I can run the website javascript correctly, the problem is when you need to get an answer in Delphi the javascript function in html, I did not find anything to do that. For example, I click a button on Delphi and perform the JS function within the browser, it returns me as True value, I need Delphi take this value in a variable or something.
Solved: used this
If anyone knows a better way, feel free to contribute.