I get away with this in ie & fox.. but not chrome?.. : (
Code:
<html>
<head>
<title>Untitled Document</title>
<script type="text/javascript">
<!--
function popup(url)
{
var width =screen.width*.7;
var height =screen.height*.5;
var left = (screen.width - width)/2;
var top = (screen.height - height)/2;
var params = 'width='+width+', height='+height;
params += ', top='+top+', left='+left;
params += ', directories=no';
params += ', location=no';
params += ', menubar=no';
params += ', resizable=yes';
params += ', scrollbars=no';
params += ', status=no';
params += ', toolbar=no';
newwin=window.open(url,'windowname5', params);
if (window.focus) {newwin.focus()}
return false;
}
// -->
</script>
</head>
<body bgcolor="#000000" text="#000000>
<a href="javascript: void(0)"
onclick="popup('https://www.facebook.com/login.php')">Centered popup window</a>
</body>
</html>