Hi everybody, I’ve made a pop-up for a web page when it loads, but a would like it to appear at the center of the page, not in a corner. Can somebody help me? I’m sure it’s a simple question… Thanks!
[color=navy]<script type="text/javascript"> <!-- var w=500; /* popup window width*/ var h=440; /* popup window height*/ var l=(screen.width-w)/2; /*this centers horizontally*/ var t=(screen.height-h)/2; /*this centers vertically*/ var url="http://www.google.com"; var features="left="+l+",top="+t+",width="+w+",height="+h+",scrollbars=auto"; function popItUp() { window.open(url,"",features); } //--> </script> <a href="jav&#97;script:void(popItUp())">google</a>[/color]
<i> </i>
Help @cali2copi spread the word by sharing this article on Twitter...