# Closing webpage from flash

**URL:** <https://forum.kirupa.com/t/closing-webpage-from-flash/200097>\
**Category:** flash\
**Created:** [September 8, 2006, 4:28pm UTC](https://forum.kirupa.com/t/closing-webpage-from-flash/200097 "2006-09-08T16:28:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clem\_c\_rock](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@clem\_c\_rock](https://forum.kirupa.com/u/clem_c_rock)\
**Post date:** [September 8, 2006, 4:28pm UTC](https://forum.kirupa.com/t/closing-webpage-from-flash/200097/1 "2006-09-08T16:28:24Z")

</div>

Hello,

I need to get a script that closes the webpage that a flash file resides from the flash program.

I always see this code:

```
Code:
[LEFT]

```

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

When I try this it never works.

Any ideas?[/LEFT]

Thanks,  
Clem C
