Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

JS variable access

Post Reply
subin
Posts: 20
Joined: Thu Sep 05, 2024 5:15 am

JS variable access

Post by subin »

hi,
I need to access the javascript variable value. Please let me know how can i get it. Also if the OnLoadingStateChange will get triggerd when there is a change in this javascript variable or which event can use to know the js variable is changed.
thanks
Subin
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: JS variable access

Post by salvadordf »

Read this to send information from JavaScript to Delphi :
https://stackoverflow.com/questions/64303829/how-to-invoke-the-delphi-function-from-javascript-using-cef4delphi/64304191#64304191

Read the code comments in the DOMVisitor and JSExtension demos.

I'm not a JavaScript expert but this is one result when you search "JavaScript listening variable value changed":
https://stackoverflow.com/questions/65937827/listen-to-js-variable-change
Post Reply