In a page I have a 'Close' button that when clicked has to close the current browser tab (the tab in which is the page that contain this close button). So I wrote something like this:
<button type="button" class="btn btn-default" style="color: #0F8BB0;" onclick="window.close();">
Close
</button>
But it doesn't work and the current browser tab is not closed. Why? What am I missing? How can I try to solve this issue?