I have an HTML button and I need to close the tab by clicking on it.
It must work on Chrome and Firefox and seems the common methods are not detecting from the new browser versions.
I just tried these two and not worked.
<a href="#" onclick="javascript:window.close();opener.window.focus();">Close</a>
AND
<button onclick="self.close()">Close</button>
Both did not work.
Please, can you help me?