questo è il codice per la finestra popup (E NON POPUO)come posso definirgli la posizione x e y?
<script language="JavaScript">
function openPopupWin(url,width,height) {
//note: replace '_blank' with a unique name (g.e. 'mypopup') to reopen the same window instead a new one!
h = window.open(url,'_blank','location=no,scrollbars=n o,toolbar=no,width='+width+',height='+height);
h.focus();
return false;
}
function closePopupWin() {
// METODO 1
var o = window.opener;
if( o ) {
if( !o.closed ) {
if( o.h ) {
o.h.close();
o.h = null;
} else {
window.close();
}
}
} else {
if( h && h.open && !h.closed ) {
window.close();
h = null;
} else {
// alert("yet closed!");
}
}
}
function onopenwindow() {
self.focus();
}
function onclosewindow() {
closePopupWin();
}
</script>