Jump to content


nubets's Content

There have been 1 items by nubets (Search limited from 30/03/2023)


Ordernar por                Order  

#953726 Auto Fechar A Janela Sem Questionar

Posted by nubets on 16/01/2009, 00:47 in Javascript / DOM / AJAX / ECMAScript

function FecharJanela()
{
if ( navigator.appName.match("Microsoft") )
{
window.open("", "_parent");
window.opener = "";
}
window.close();
}


Fonte: http://189.10.40.20/...m-pergunta.aspx

Comigo funcionou. Nem usei como função, usei no botão que abria um popup:
"... onclick="abrir('index.php?caminho=$caminho', 770, 400);window.open('', '_parent');window.opener = '';window.close();" ..."




IPB Skin By Virteq