How to close current tab in a browser window?

You will need Javascript to do this. Use window.close(): Note: the current tab is implied. This is equivalent: or you can specify a different window. So: with HTML: or: You return false here to prevent the default behavior for the event. Otherwise the browser will attempt to go to that URL (which it obviously isn’t). Now the options on … Read more

Adding options to a