You can use one of the JavaScript interpreters available on the market. First of all, it is the Windows Scripting Engine itself, which offers JScript (the delphi shell is required for convenient operation). Next, FastScript FastReports. There are more available, but I donβt remember the names at the moment.
The problem, however, is that the language itself is not enough. You seem to need to use JavaScript code that uses the HTML DOM and various browser classes. Obviously, they are not available if you do not have the browser mechanism in your program. That is, if you insert a TWebBrowser or a link to the Mozilla engine, you get a browser, and you can run scripts inside the browser window.
But if you want to automate the Delphi GUI with JavaScript, this is probably not the best idea - browser-based JavaScript code will be useless for this.
Eugene Mayevski 'Allied Bits
source share