# Closing a firefox popup window

**URL:** <https://forum.kirupa.com/t/closing-a-firefox-popup-window/147655>\
**Category:** Uncategorized\
**Created:** [May 12, 2005, 3:18pm UTC](https://forum.kirupa.com/t/closing-a-firefox-popup-window/147655 "2005-05-12T15:18:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)\
**Post date:** [May 12, 2005, 3:18pm UTC](https://forum.kirupa.com/t/closing-a-firefox-popup-window/147655/1 "2005-05-12T15:18:17Z")

</div>

So I’m trying to attach script to a button that will close the pop-up window the movie is embedded in. I’ve got it working fine in Internet Explorer with this:

```auto

getURL("javascript:window.opener=self; window.close()");

```

but does not work in Firefox. Anyone know a workaround or another method to achieve this?
