For example, I want to make a button that automatically closes my site. Is it real at all?

1 answer 1

For example, like this. But the browser will require confirmation to close.

<script> var closeSite = function() { window.close(); } </script> <a href="#" onclick="closeSite()">Выйти с сайта</a>