Veamos una manera de abrir un popup al frente de nuestra pagin.
Solo tienes que copear el código que esta abajo y si quieres puedes descargar el ejemplo funcionando al final.
<html>
<title> Centered popup window</title>
<script language="Javascript">
//Free Javascripts on http://www.scriptBreaker.com
function newWindow(mypage,myname,w,h,features) {
if(screen.width){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
}else{winl = 0;wint =0;}
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
var settings = height= + h + ,;
settings += width= + w + ,;
settings += top= + wint + ,;
settings += left= + winl + ,;
settings += features;
win = window.open(mypage,myname,settings);
win.window.focus();
}
</script>
<body>
<a href="Javascript:newWindow(centered.htm,popup,300,200,)">
click to open the popup
window</a>
</body>
</html>
Descargar