The MiniBrowser demo has a complete example about the javascript-delphi integration.Osacar wrote: Fri Jun 09, 2017 8:21 am How to pass parameters to delphi function from javascript function?
It's explained here :
viewtopic.php?f=8&t=42
Take a look at the javascript code calling myextension.mouseover(getpath(evt.target)) (uMiniBrowser.pas, line 277)
The extension has a procedure called TTestExtension.mouseover(const data: string) which adds the data parameter to the ArgumentList
Later, that message is received at procedure TMiniBrowserFrm.Chromium1ProcessMessageReceived where the text in the ArgumentList is shown in the StatusBar.