Issue with window.close and chrome
If previously you open some other window by window.open()
This don't work:
window.open(...)
window.open('', '_self', '');
window.close();
But work:
window.open(...);
setTimeout(function(){
window.open('', '_self', '');
window.close();
}, 100);
I know this question is old, but I ran into the same problem. This worked for me:
window.open('', '_self', ''); //bug fix
window.close();