# External Interface

**URL:** <https://forum.kirupa.com/t/external-interface/298156>\
**Category:** flash\
**Created:** [October 14, 2009, 3:11pm UTC](https://forum.kirupa.com/t/external-interface/298156 "2009-10-14T15:11:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![halian](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@halian](https://forum.kirupa.com/u/halian)\
**Post date:** [October 14, 2009, 3:11pm UTC](https://forum.kirupa.com/t/external-interface/298156/1 "2009-10-14T15:11:43Z")

</div>

Currently I’m trying to call a window.close with external interface. It works fine, however, I also have a window.beforeunload call in my javascript so the close button ends up calling two windows. One is the “this page is trying to close…blah blah blah” and the other is the custom one i wrote.

Is there anyway to call onbeforeunload combined with window.close from external interface so that i only get one warning?
