# Closing browsers with flash

**URL:** <https://forum.kirupa.com/t/closing-browsers-with-flash/5056>\
**Category:** random\
**Created:** [August 30, 2002, 3:27am UTC](https://forum.kirupa.com/t/closing-browsers-with-flash/5056 "2002-08-30T03:27:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rainblade](https://avatars.discourse-cdn.com/v4/letter/r/6a8cbe/32.png) [@Rainblade](https://forum.kirupa.com/u/Rainblade)\
**Post date:** [August 30, 2002, 3:27am UTC](https://forum.kirupa.com/t/closing-browsers-with-flash/5056/1 "2002-08-30T03:27:33Z")

</div>

Anyone know how to close down browser using action script within a button to close the browser  
.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2002, 3:30am UTC](https://forum.kirupa.com/t/closing-browsers-with-flash/5056/2 "2002-08-30T03:30:47Z")

</div>

Something along the lines of

getURL(“javascript:close()”);

That syntax may be not be correct of course, but the code you really need is \<B\>javascript:close()\</B\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2002, 5:17am UTC](https://forum.kirupa.com/t/closing-browsers-with-flash/5056/3 "2002-08-30T05:17:56Z")

</div>

i figured it was something like that but it didnt solve my problem i need to close a frames page and that only closes a single html page

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2002, 5:20am UTC](https://forum.kirupa.com/t/closing-browsers-with-flash/5056/4 "2002-08-30T05:20:04Z")

</div>

So it won’t close your window becaus you have multiple frames?

Instead of waiting for a reply, I am going to say to try this…

getURL(“javascript:close()”,\_top)

Probably not right syntax, but in the window location area type \_top, this should target the page containing your frameset and close the whole window.
