# getURL("javascript:window.close()");

**URL:** <https://forum.kirupa.com/t/geturl-javascript-window-close/227451>\
**Category:** flash\
**Created:** [May 30, 2007, 1:17pm UTC](https://forum.kirupa.com/t/geturl-javascript-window-close/227451 "2007-05-30T13:17:52Z")\
**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:** [May 30, 2007, 1:17pm UTC](https://forum.kirupa.com/t/geturl-javascript-window-close/227451/1 "2007-05-30T13:17:52Z")

</div>

No matter what I do I cannot get this to work.

All I want is a button in flash that will close the browser window. It’s a popup window so it should be able to be closed.

I’ve googled a few different workings of the code but none of them seem to work. Any help would be appreciated.
