Shubham Shubham - 1 year ago 106
Javascript Question

How to close browser tab

I am not able to close the current browser tab using javascript.

I tried-

window.close(); //1"", '_self');//2
},100);'','_parent',''); //3
window.close();; //4

Nothing is working for me in chrome

Answer Source

window.close method is only allowed to be called for windows that were opened by a script using the method.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download