# Close Window

**URL:** <https://forum.kirupa.com/t/close-window/6025>\
**Category:** flash\
**Created:** [September 27, 2002, 8:31pm UTC](https://forum.kirupa.com/t/close-window/6025 "2002-09-27T20:31:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrankM](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/frankm/32/69_2.png) [@FrankM](https://forum.kirupa.com/u/FrankM)\
**Post date:** [September 27, 2002, 8:31pm UTC](https://forum.kirupa.com/t/close-window/6025/1 "2002-09-27T20:31:59Z")

</div>

I have been having problems closing a window. Please look at the following two examples. Any suggestions would be great. On the one that work incorrectly the only way for me to close the window is in Task Manager. The difference in the two examples is that one uses frames and the other does not. Help !

works incorrectly  
[http://www.geocities.com/asmfjm/test/index.html](http://www.geocities.com/asmfjm/test/index.html)

works correctly  
[http://www.geocities.com/asmfjm/test/index2.html](http://www.geocities.com/asmfjm/test/index2.html)

Oh, yeah, I have been testing this out using IE 5.5

---

<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:** [September 27, 2002, 8:44pm UTC](https://forum.kirupa.com/t/close-window/6025/2 "2002-09-27T20:44:38Z")

</div>

Try this maybe…

```php
<A TARGET="_top" HREF="javascript:close()">Close Window</A>

```

Remove the space between java and script. The board automatically puts that there.

---

<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:** [September 27, 2002, 9:39pm UTC](https://forum.kirupa.com/t/close-window/6025/3 "2002-09-27T21:39:57Z")

</div>

AWESOME IT WORKED !!!

And yes I know all caps is yelling and yes I am yelling and jumping up and down because I have been fighting with this for a while. Thank you. Thank you. Thank you.

---

<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:** [September 29, 2002, 7:37pm UTC](https://forum.kirupa.com/t/close-window/6025/4 "2002-09-29T19:37:18Z")

</div>

(-: Hey no problem, I am glad I could help out 🙂
