I have a close link on my web page. I would like to function it to close the current tab when click it. I have written
You can only close windows/tabs that you create yourself. That is, you cannot programmatically close a window/tab that the user creates.
For example, if you create a window with
window.open() you can close it with