1.弹启一个全屏窗口
<html>
<body onload="window.open(http://www.pconline.com.cn,example01,fullscreen);">;
<b>www.e3i5.com</b>
</body>
</html>
2.弹启一个被f11化后的窗口
<html>
<body onload="window.open(http://www.pconline.com.cn,example02,channelmode);">;
<b>www.e3i5.com</b>
</body>
</html>
3.弹启一个带有收藏链接工具栏的窗口
<html>
<body onload="window.open(http://www.pconline.com.cn,example03,width=400,height=300,directories);">
<b>www.e3i5.com</b>
</body>
</html>
4.网页对话框
<html>
<script language="javascript">
<!--
showmodaldialog(http://www.pconline.com.cn,example04,dialogwidth:400px;dialogheight:300px;
dialogleft:200px;dialogtop:150px;center:yes;help:yes;resizable:yes;status:yes)
//-->
</script>
<b>www.e3i5.com</b>
</body>
</html>
<html>
<script language="javascript">
<!--
showmodelessdialog(http://www.pconline.com.cn,example05,dialogwidth:400px;dialogheight:300px;
dialogleft:200px;dialogtop:150px;center:yes;help:yes;resizable:yes;status:yes)
//-->
</script>
<b>http://www.pconline.com.cn</b>
</body>
</html>
showmodaldialog()或是showmodelessdialog() 来调用网页对话框,至于showmodaldialog()与showmodelessdialog()的区别,在于showmodaldialog()打开的窗口(简称模式窗口),置在父窗口上,必须关闭才能访问父窗口(建议尽量少用,以免招人反感);showmodelessdialog()(简称弈j酱翱冢蚩蟛槐毓乇找部煞梦矢复翱诖蚩拇翱凇?
dialogheight: iheight 设置对话框窗口的高度。
dialogwidth: iwidth 设置对话框窗口的宽度。
dialogleft: ixpos 设置对话框窗口相对于桌面左上角的left位置。
dialogtop: iypos 设置对话框窗口相对于桌面左上角的top位置。
center: {yes | no | 1 | 0 } 指定是否将对话框在桌面上居中,默认值是“yes”。
help: {yes | no | 1 | 0 } 指定对话框窗口中是否显示上下文敏感的帮助图标。默认值是“yes”。
resizable: {yes | no | 1 | 0 } 指定是否对话框窗口大小可变。默认值是“no”。
status: {yes | no | 1 | 0 } 指定对话框窗口是否显示状态栏。对于非模式对话框窗口,默认值是“yes”;对于模式对话框窗口,默认值是 “no”。
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!


