I am trying to close the current tab in my HTML code on Chrome but it does not seem to work. Is the server side avoiding this?
<!DOCTYPE html>
<html>
<head>
<a href="javascript:closeWindow();"></a>
</head>
</html>
<script>
function closeWindow() {
window.top.close();
close();
}
</script>