Acrobat JavaScript is Acrobat JavaScript and HTML JavaScript is HTML JavaScript. Neither will work in the other's environment. The only thing that is the same between the two is the Core language. This is true for all JavaScript environments. Each is written for a specific application and will only work cross-environment if an explicit bridge is written. No such thing exists for Acrobat to HTML.
However there is a rather unreliable message passing mechanisim. See this example and look up the "HostContainer" object in the Acrobat JavaScript Reference.
However there is a rather unreliable message passing mechanisim. See this example and look up the "HostContainer" object in the Acrobat JavaScript Reference.
[url=http://www.windjack.com/WindJack/Browser2PDF/brwsr2acroJS.htm]http://www.windjack.com/WindJack/Browser2PDF/brwsr2acroJS.htm[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script