Question: self.close() is working fine in IE but not in Mozilla. Does anyone know what is the issue and how can I solve it?

Answer: 
Did you open the window using `window.open`? [According to the docs on window.close](https://developer.mozilla.org/En/DOM/Window.close):

> 
> This method is only allowed to be called for windows that were opened by a script using the window.open method. If the window was not opened by a script, the following error appears in the JavaScript Console: Scripts may not close windows that were not opened by script. 
> 
> 
>
Try using `window.close()` instead.