On Mar 5, 12:42 pm, den <spam...@not.no twrote:
same thing for the height parameter;
for to set in the centre some popup with images what is better?
what are the difference?
Reposting the example because of text-wrap in last post :
-<html>
-<head>
-<script type="text/javascript">
-function openPP(a1){
-wWidth=500;wHei ght=30;
-relWid=(a1?scre en.width:window .innerWidth)/2;
-relHgh=(a1?scre en.height:windo w.innerHeight)/2
-wLeft=(relWid>w Width/2)?relWid-wWidth/2:screenX
-wTop=(relHgh>wH eight/2)?relHgh-wHeight/2:screenY+10
-window.open("ab out:blank",
"newP","left="+ wLeft+",top="+w Top+",width="+w Width
+",height="+wHe ight)
-}
-</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>