Search code examples
javascriptdelphitwebbrowserdelphi-xe8

XE8 Delphi and FireMonkey: Integrating javascript webbrowser and the system


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.


Solution

  • Solved: used this

    Callback Delphi function from TWebBrowser by javascript on Delphi XE6 for all platforms (including iOS, ANDROID)?

    If anyone knows a better way, feel free to contribute.