codice:
<script type="text/javascript" language="JavaScript">
<!--
function openCenteredWindow( __url, __name, __cxWnd, __cyWnd, __extra )
{
var _xPos = (screen.width - __cxWnd) / 2;
var _yPos = (screen.height - __cyWnd) / 2;
var _format = "height=" + __cyWnd +
",width=" + __cxWnd +
",top=" + _yPos +
",left=" + _xPos +
",screenY=" + _yPos +
",screenX=" + _xPos +
(__extra ? "," + __extra : "");
return window.open( __url, __name, _format);
}
// Calling method
openCenteredWindow( <url>, <name>, <width>, <height> );
// Cuestomized calling method
// apparence: "toolbar=no,menubar=yes,statusbar=yes"
openCenteredWindow( <url>, <name>, <width>, <height>, <apparence> );
//-->
</script>
fammi sapere: non l'ho testato!