弹出网页窗口全攻略(html/hta)
<html><body onload="window.open('http://www.pconline.com.cn','example01','fullscreen');">;<b>www.e3i5.com</b></body></html>
<html><body onload="window.open(''http://www.pconline.com.cn','example02','channelmode');">;<b>www.e3i5.com</b></body></html>
<html><body onload="window.open('http://www.pconline.com.cn','example03','width=400,height=300,directories');"><b>www.e3i5.com</b></body></html>
<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”。
弹出网页窗口全攻略(html/hta)的文章由IT培训网编写收集整理,转载引用本网站的原创文章,请务必注明信息来源,标明“IT培训网”字样如果我们的文章有涉及或侵犯您的有关权益,请即时与我们联系, 注明网址及文章,我们会即时处理或删除, 感谢您的合作!


