I have tried some many codes but none is helping my requirement is to close the tab which is open on button click in a page.
window.open("about:blank", "_self");
window.close();
This piece of code on click function in angular but it showing blank page on current active tab but not closing the window.
it not a anchor it is a button and here its using angular code we need to do this.