# Close Window-- without dialogue, button, or link

**URL:** <https://forum.kirupa.com/t/close-window-without-dialogue-button-or-link/25456>\
**Category:** Uncategorized\
**Created:** [July 13, 2003, 12:40am UTC](https://forum.kirupa.com/t/close-window-without-dialogue-button-or-link/25456 "2003-07-13T00:40:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjaini](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rjaini](https://forum.kirupa.com/u/rjaini)\
**Post date:** [July 13, 2003, 12:40am UTC](https://forum.kirupa.com/t/close-window-without-dialogue-button-or-link/25456/1 "2003-07-13T00:40:23Z")

</div>

Hi there!

I have a .swf file, in an HTML document that opens full-screen. I want the entire HTML document to automatically close when the .swf is done playing… without having to click a button or link and without the “Do you want to close this window?” dialogue box.

I tried timing an automatic-close for the .swf… but on every computer, the thing takes slightly longer or shorter to play, and some people end up missing the last few bits of the show.

[In case it matters, the HTML with the swf opens from a only-HTML link.]

Is this possible?

Thank you! :love:

---

<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:** [July 13, 2003, 1:20am UTC](https://forum.kirupa.com/t/close-window-without-dialogue-button-or-link/25456/2 "2003-07-13T01:20:06Z")

</div>

in the last frame, getURL a javascript self.close() …

---

<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:** [July 13, 2003, 1:49am UTC](https://forum.kirupa.com/t/close-window-without-dialogue-button-or-link/25456/3 "2003-07-13T01:49:05Z")

</div>

Try something like this…

[AS]getURL(“java\*\*script:window.opener=null; window.close(); return false;”)[/AS]
