probaj ovako, jednim potezom:
Code:
<script>
w = screen.width;
h = screen.height;
function openWin(windowURL,windowName,windowFeatures) { return window.open(windowURL,windowName,windowFeatures);}
function PopWin (url,width,height,name)
{
var left = (w - width) / 2;
var top = (h - height) / 2;
options = "left="+left+",top="+top+",width="+width+",height="+height;
options += ",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0,fullscreen=no"
win_id = openWin (url, name, options );
}
</script>
ovo ti centrira na sred ekrana, a pozivas funkciju na primer ovako
<a href="javascript:PopWin('proba.html', 300,400, 'ime');">popup</a>
Goran Pilipović fka bluesman