Criei duas páginas html test.html <html>
<head>
<title>Teste</title>
</head>
<body>
<h2>Teste</h2>
</body>
</html>
teste.html
<html>
<head>
<title>Teste</title>
<script language=JavaScript>
function popup()
{
window.open('test.html','test', 'width=150,height=120');
test.close();
}
</script>
</head>
<body>
<a href="java script:void(0)" onclick="popup();">Abrir Popup</a>
</body>
</html> O interessante é que essa página não deveria abrir já que a abro e mando fechá-la ao mesmo tempo. Estou fazendo o quê de errado? Meu real objetivo é fechar, no caso de existir aberto o test.html e reabri-lá; ou fazer de alguma forma que esta janela fique na frente de todas(em evidência) ao clicar novamente em abrir... obrigado a todos que leram e de alguma forma tentaram ajudar. abrs,