# Call external doc level javascript in a pdf doc

**URL:** <https://forum.kirupa.com/t/call-external-doc-level-javascript-in-a-pdf-doc/31580>\
**Category:** Uncategorized\
**Created:** [September 24, 2003, 3:33pm UTC](https://forum.kirupa.com/t/call-external-doc-level-javascript-in-a-pdf-doc/31580 "2003-09-24T15:33:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melissa\_Anne](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Melissa\_Anne](https://forum.kirupa.com/u/Melissa_Anne)\
**Post date:** [September 24, 2003, 3:33pm UTC](https://forum.kirupa.com/t/call-external-doc-level-javascript-in-a-pdf-doc/31580/1 "2003-09-24T15:33:46Z")

</div>

Can someone help me with the following?  
My problem:  
I have a button that has to open a pdf doc. (in acrobat and not in a explorer window).  
I know that in Acrobat I can have a document level javascript…  
but how do I call this javascript from flash?
