>>>>>>>>>>>>>>>>
>How can I run a Javascript function from a Web page from VFP?
>>>>>>>>>>>>>>>>
You cannot run JavaScript natively from VFP. If it is in a website, then the website has to have code to run that function.
If you mean running a JS script you have on your disk, from VFP, you can through WSH using Wscript.exe or CScript.exe