window.showModalDialog全屏显示:

function winModalFullScreen(strURL)
{
var sheight = screen.height-70;
var swidth = screen.width-10;
var winoption ="dialogHeight:"+sheight+"px;dialogWidth:"+ swidth +"px;status:yes;scroll:yes;resizable:yes;center:yes";
var tmp=window.showModalDialog(strURL,window,winoption);
return tmp;
}

 

 

window.open全屏显示:

function winOpenFullScreen(strURL)
{
var sheight = screen.height-70;
var swidth = screen.width-10;
var winoption ="left=0,top=0,height="+sheight+",width="+swidth+",toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";
var tmp=window.open(strURL,'',winoption);
return tmp;
}

相关文章:

  • 2022-12-23
  • 2021-07-23
  • 2021-08-27
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
相关资源
相似解决方案