dickrong 发表于 2019-1-27 09:36:35

window.open參數

//開啟至中函數  
  function inputData(targetURL,winW,winH){
  screenW=screen.width/2;
  screenH=screen.height/2;
  winL=screenW-(winW/2);
  winT=screenH-(winH/2);
  window.open(targetURL,"","toolbar=yes,resizable=yes,scrollbars=yes,width="+winW+",height="+winH+",left=screen.width/2,top="+winT);
  }
  

页: [1]
查看完整版本: window.open參數