Pop-up med variabler

<script language="javascript">
function openWin(url, width, height) {
 if(ns) {
 args = "width="+width+",height="+height+",screenX="+(screen.width/2-width/2)+",
screenY="+(screen.height/2-height/2)+",scrollbars=no,resize=no";

 window.open(url, "newWin", args);
} else { args = "width="+width+" height="+height+"left="+(screen.width/2-width/2)+" top="+(screen.height/2-height/2)+" scrollbars=no resize=no"; window.open(url, "newWin", args); } } </script>

Skrevet av Sindre Mathisen 2001