Does anyone know of a chunk of JavaScript that will succesfully close a Firefox 2.0.x window?

I'm trying to set up a close window link in a web page and everything I've found related to Firefox was for older versions of Firefox, but there isn't anything that seems to work in Firefox 2.0.x.