# Call a javascript function from actionscript

**URL:** <https://forum.kirupa.com/t/call-a-javascript-function-from-actionscript/298035>\
**Category:** flash\
**Created:** [October 12, 2009, 11:10pm UTC](https://forum.kirupa.com/t/call-a-javascript-function-from-actionscript/298035 "2009-10-12T23:10:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkhippothewis](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@darkhippothewis](https://forum.kirupa.com/u/darkhippothewis)\
**Post date:** [October 12, 2009, 11:10pm UTC](https://forum.kirupa.com/t/call-a-javascript-function-from-actionscript/298035/1 "2009-10-12T23:10:12Z")

</div>

I need to call the PopModal function within actionscript. Just wondering how I would do that?

```auto
<script src="/include/js/autopop.js" type="text/javascript"></script>
    <script type="text/javascript">      
        function PopModal() {
            popit('/FlashModal.aspx');
            
        }
    </script>

```
