ciao a tutti vorrei utilizzare il pulsante che compare nella pagina madre sia per andare alla home e sia per chiudere la popup aperta in automatico all'inizio
<html>
<script language="javascript" type="text/javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left ='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}
</script>
<body onload="NewWindow('index.asp','chat','800','600',' no'); return false;">
<font face="Comic Sans MS">Home</font>
[img]../menu/indietro.GIF[/img]
</body>
</html>
![]()