var exit = confirm("Do u want to close browser!");
if (exit) { window.close() }
else { }
If user clicks yes then i need to close browser but Window.close() is not working
its showing
"Scripts may close only the windows that were opened by it."
Its from Master page.
Is their any other way to close the browser with the help of javascript.

Abhishek MishraRank #871 · 2.5K reputationPosted Apr 17, 2019, 8:02 PM EDT
Amit KumarRank #459 · 5.4K reputationPosted Apr 17, 2019, 8:09 PM EDT
Bidyasagar MishraRank #766 · 3K reputationPosted Aug 23, 2019, 7:51 AM EDT