The JavaScript Script control would likely work for that. Anything you do inside of the browser or Web Browser control though is subject to those security restrictions.
I wonder though what does that code do to generate the HTML. If it uses the HTML DOM of the browser you still need a browser to do it and I bet it does...
+++ Rick ---
>Thanks, Rick.
>
>Does it make any difference if I am not going to run anything in a browser. The JAVA Script code I want to run from VFP simply generates an HTML report. That report would then be imported into "TX text Control" for viewing, printing or output to Doc or PDF. They already have the report generator built in JAVA Script and we were hoping I would not have to rewrite it in VFP.
>
>Ivan
>
>>Probably not a good idea. While you can use the Web Browser control to host the JavaScript on the client, JavaScript is locked down on the client pretty heavily which means you'll likely get security dialogs.
>>
>>+++ Rick ---