How can I close a browser window without receiving the “Do you want to close this window” prompt?

window.open('', '_self', ''); window.close();

This works for me.

Leave a Comment