# Closing frames

**URL:** <https://forum.kirupa.com/t/closing-frames/5060>\
**Category:** programming\
**Created:** [August 30, 2002, 5:11am UTC](https://forum.kirupa.com/t/closing-frames/5060 "2002-08-30T05:11:43Z")\
**Posts on this page:** 2\
**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, 5:11am UTC](https://forum.kirupa.com/t/closing-frames/5060/1 "2002-08-30T05:11:43Z")

</div>

I need to close a frames page but if i use “javascript:self.close()” it will close the individual part of the frames and not the entire browser.

any suggestions,

---

<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:32am UTC](https://forum.kirupa.com/t/closing-frames/5060/2 "2002-08-30T05:32:24Z")

</div>

I answered in your other thread rainblade. Please don’t post exact threads in different sections. This is called spamming. Just in case you check this one first I said to try this…

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

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