Javascript / Popups / Centered Popup
to make a popup that is only 2/3 of the total screen width and height and positions it in the middle
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown
<!---Head--->
<script>
function resize() {
h=(window.screen.availHeight * 2/3);
w=(window.screen.availWidth * 2/3);
t = (screen.Width) ? (screen.Width-w)/2 : 0;
l = (screen.height) ? (screen.height-h)/2 : 0;
resizeTo(w,h)
moveTo(t,l)
}
</script>
<!---Body--->
<body onLoad="resize()";>
No Reviews to show
