在设计网页时,对于一些只有指定用户才能看到的信息,可以以全屏显示的网页模式展示给用户,这样可以保证用户看后能及时将其关闭,再进行其他的操作。示例如下:

<script language="javascript">
 function opendialog()
 {
 var width=screen.width;    //屏幕的宽度
 var height=screen.height;  //屏幕的高度
 window.showModalDialog("new.htm","","dialogWidth="+width+"px;dialogHeight="+height+"px;status=no;help=no;scrollbars=no")
 }
 </script>

<a href="#" onClick="opendialog()">弹出全屏显示的网页模式对话框</a>

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2021-12-03
  • 2021-08-29
相关资源
相似解决方案