aw: Fenster mittig positionieren

Beitrag lesen

Hallo,
ich mach es so:

PopUp={
 pop:function(path,width,height,scroll,menubar){
  var top = Math.round((screen.height - height) / 2);
  var left = Math.round((screen.width - width) / 2);
  win = window.open(path,"PopUp","width="+width+",height="+height+",top="+top+",left="+left+",scrollbars="+scroll+",menubar="+menubar);
  win.focus();
 }
}
Mit freundlichen Grüßen,
Andreas Waidelich

--
signatures eat bandwidth