Page 1 of 1
How to Write a value in the 'Local Storage'
Posted: Wed Sep 02, 2020 9:44 pm
by Michael
Hi,
I would like to write a value in the 'Local Storage'. It is possible and how can I do this?
Thank you for help!
Kind Regards
Michael
Re: How to Write a value in the 'Local Storage'
Posted: Thu Sep 03, 2020 7:23 am
by salvadordf
Hi,
If you can do something in pure JavaScript then you should be able to do the same in a CEF application with the CEF API or executing raw JavaScript code with
TChromium.ExecuteJavaScript.
Please, read this document to know the details about the JavaScript integration in CEF :
https://bitbucket.org/chromiumembedded/ ... gration.md
That document has references to the C/C++ API but you'll find that all the examples have a Delphi demo inside the
CEF4Delphi\demos\Delphi_VCL\JavaScript directory.
After reading that document, read the code comments in the DOMVisitor and JSExtension demos.