On Mar 5, 12:42 pm, den <spam...@not.notwrote:
same thing for the height parameter;
for to set in the centre some popup with images what is better?
what are the difference?
```````-Example-````````
<html>
<head>
<script type="text/javascript">
function openPP(a1){
wWidth=500;wHeight=30;
relWid=(a1?screen.width:window.innerWidth)/2; relHgh=(a1?
screen.height:window.innerHeight)/2
wLeft=(relWid>wWidth/2)?relWid-wWidth/2:screenX
wTop=(relHgh>wHeight/2)?relHgh-wHeight/2:screenY+10
window.open("about
:blank","newP","left="+wLeft+",t op="+wTop
+",width="+wWidth+",height="+wHeight)
}
</script>
</head>
<body style="text-align:center">
<button onclick="openPP(0)">Open a window in center of browser</
button>
<button onclick="openPP(1)">Open a window in center of screen</button>
</body>
</html>