Since Elements does not support JavaScript as a language to begin with:, no ;). Also, to use the Elements compiler in your app, yo’d need a deployment license for that, or every user of your app would need an Elements license ;).
That said, you should be able to host the .NET-based RemObjects Script for .NET | RemObjects Software in your Delphi app, using Hydra, if you create a .NET plugin (which you could do in Oxygene).
My apologies for the delay. What exact problem should I be looking out for? ran the DXebugger sample, and it seems to work fine. What script code are you running, and what misbehaves, exactly?
Note that alert() is a function provided by the web-browser, not JavaScript. You need to make that distinction. Script supports whatever APIs you define in your app to expose to it.
ah I think there’s some misunderstanding. Script provides the core ecmascript 5 functionality.
Alert (and anything else defined on Window): Window: alert() method - Web APIs | MDN is not part of that. Script provides a fully sandboxed Javascript engine, and out of the box no functionality to interact with the user directly (that’s on purpose). That said it’s really easy to add. Something like: