Q: how to set dom.allow_scripts_to_close_windows to true value by using javascript in firefox? Here I'm trying to close a firefox window using javascript, its only works after dom.allow_scripts_to_close_windows set to true. But I need to set this by using a javascript code. Is it possible or not?  Please help me to solve this issue.

A: Unfortunately, you can't close any window with window.close.
You can use it to close windows that were opened by a script using window.open.
https://developer.mozilla.org/en-US/docs/Web/API/Window/close
