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.

How to Write a value in the 'Local Storage'

Post Reply
Michael
Posts: 1
Joined: Wed Sep 02, 2020 2:40 pm

How to Write a value in the 'Local Storage'

Post 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
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to Write a value in the 'Local Storage'

Post 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.
Post Reply