MOGSY Posted February 24, 2020 Share Posted February 24, 2020 Hi I have the following code in a UniHTMLFrame. I tried the following code from delphi to run the function. How should the call be made. HTMLFrame.JSInterface.JSCode(#1'.testFunction();'); Thank you. <!DOCTYPE html> <html> <head> <title>Test</title> </head> <body> <b>TEST PAGE</b> <p>function name: testFunction</p> </body> <script type="text/javascript"> function testFunction() { alert('THE TEST FUNCTION HAS BEEN RAN!'); } </script> </html> Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 24, 2020 Share Posted February 24, 2020 1 hour ago, MOGSY said: I tried the following code from delphi to run the function. How should the call be made. Hi, Try this: UniSession.AddJS('testFunction()'); Quote Link to comment Share on other sites More sharing options...
MOGSY Posted February 24, 2020 Author Share Posted February 24, 2020 Hi Sherzod Works, Thank you for your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.