# Close Browser Window button in AS2!?

**URL:** <https://forum.kirupa.com/t/close-browser-window-button-in-as2/308637>\
**Category:** Uncategorized\
**Created:** [April 27, 2010, 2:40pm UTC](https://forum.kirupa.com/t/close-browser-window-button-in-as2/308637 "2010-04-27T14:40:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barrytron](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@Barrytron](https://forum.kirupa.com/u/Barrytron)\
**Post date:** [April 27, 2010, 2:40pm UTC](https://forum.kirupa.com/t/close-browser-window-button-in-as2/308637/1 "2010-04-27T14:40:11Z")

</div>

Hi there!  
I am working with a load of old training modules created in AS2 and a few in AS3…I can’t get the exit button to work when running in a browser…it’s freaking me out!! I have trawled the forums and have tried many variations of:

on (release) {  
getURL (“javascript:window.opener=self;window.close()” );  
}

I need to run these on Safari and IE but I am running out of ideas…any suggestions? THis command works fine when running the SWF on it’s own.

Many thanks  
TRON
