# getURL("javascript:close()"); wont work

**URL:** <https://forum.kirupa.com/t/geturl-javascript-close-wont-work/262537>\
**Category:** flash\
**Created:** [June 6, 2008, 7:55pm UTC](https://forum.kirupa.com/t/geturl-javascript-close-wont-work/262537 "2008-06-06T19:55:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![magicmule](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@magicmule](https://forum.kirupa.com/u/magicmule)\
**Post date:** [June 6, 2008, 7:55pm UTC](https://forum.kirupa.com/t/geturl-javascript-close-wont-work/262537/1 "2008-06-06T19:55:37Z")

</div>

I’m trying to apply this code to a “close” button on an swf within an html page.

on (release) {  
getURL(“javascript:close()”);  
}

Any ideas on why it wont work. It doesnt do anything when pressing it. Is there an alternative? Also, i’d like a way to close the window without diplaying the “are you sure” window.  
Thanks.
