# Eliminating Prompt, when using command to close a browser window

**URL:** <https://forum.kirupa.com/t/eliminating-prompt-when-using-command-to-close-a-browser-window/35974>\
**Category:** flash\
**Created:** [November 20, 2003, 5:54am UTC](https://forum.kirupa.com/t/eliminating-prompt-when-using-command-to-close-a-browser-window/35974 "2003-11-20T05:54:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RussianBeer](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/russianbeer/32/152_2.png) [@RussianBeer](https://forum.kirupa.com/u/RussianBeer)\
**Post date:** [November 20, 2003, 5:54am UTC](https://forum.kirupa.com/t/eliminating-prompt-when-using-command-to-close-a-browser-window/35974/1 "2003-11-20T05:54:20Z")

</div>

Hey!

I am using this command to close a window in flash ms 2004:

```auto
MyButton.onRelease = function ()
{
getURL("javascript:window.close();");
}

```

But when , I click the button that executes this command, it prompts a window asking me if I’m sure I want to close the browser. How can I eleminate this prompt?
