Redirect ad una pop up

<html>
<head>
<title>nuova finestra</title>
<script>
function nuova(url)
{
var pop_width=627;
var pop_height = 350;
var pop_left=(screen.width-pop_width)/2;
var pop_top=(screen.height-pop_height)/2;
window.open(url,"pop","width="+pop_width+",height="+pop_height+",status=no,menubar=no,resizable=no,scrollbars=no,left="+pop_left+",top="+pop_top);
window.close();
}
</script>
</head>
<body onload="nuova('nuova.html');">
</body>
</html>

Purtroppo non si può evitare il messaggio di avviso che compare alla chiusura della home page (la prima finestra..)


Bye
 

Discussioni simili