self.close() is working fine in IE but not in Mozilla. Does anyone know what is the issue and how can I solve it?
Did you open the window using window.open? According to the docs on 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With