<!--JavaScript enables you to position popups exactly where you want them by looking at the user's screen resolution. This example shows you how.-->

<HTML>
<HEAD>
<TITLE> Absolute centering of popups </TITLE>
<script language="JavaScript">
<!--
function doPop() {
var myWin = "";
var x = screen.width;
var y = screen.height;
var width = 100;
var height = 100;
var top = parseInt((y-height)/2);
var left = parseInt((x-width)/2);
var props = "toolbars=no,status=no,resizable=no,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top;

myWin = window.open("","myWin",props);
myWin.document.write('<html>Hi there!</html>');
}
//-->
</script>

</HEAD>

<BODY>

<A HREF="javascript:void(0)" onClick="doPop()">Show centered popup</A>

</BODY>
</HTML>