Closing a firefox popup window

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:


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

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