OK. I read this in the mozilla forum :

Quote:
You can only close windows that were opened with a window.open() call.
See https://developer.mozilla.org/En/DOM:window.close
You can use window.open() to open a new window and then, try to close it by the script; which will hopefully work on all browsers.