JS Fechar a janela
window.close()
elcharitas
window.close()
open("https://is.gd/1YF5Cx", "_self"); // opens a url that closes itself
//<button onclick="(type your code here)">
window.close();
var win = window.open("http://www.google.com");
var winClosed = setInterval(function () {
if (win.closed) {
clearInterval(winClosed);
foo(); //Call your function here
}
}, 250);