弹出窗口的html的代码是怎么写的?-飞外

1、最基本的弹出窗口代码  SCRIPTLANGUAGE= #34;javascript #34; !--window.open( #34;page.html #34;)-- /SCRIPT  window.open( #34;page.html #34;)用于控制弹出新的窗口page.html,如果page.html不与主窗口在同一路径下,前面应写明路径,绝对路径(http://)和相对路径(../)均可。2、经过设置后的弹出窗口 SCRIPTLANGUAGE= #34;javascript #34; !--window.open( #34;page.html #34;, #34;newwindow #34;, #34;height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no #34;) amp;nbsp;- /SCRIPT SCRIPTLANGUAGE= #34;javascript #34; js脚本开始;window.open弹出新窗口的命令; #34;page.html #34;弹出窗口的文件名; #34;newwindow #34;弹出窗口的名字(不是文件名),非必须,可用空 #34;代替;3、用函数控制弹出窗口 scriptLANGUAGE= #34;JavaScript #34; !--functionopenwin(){window.open( #34;page.html #34;, #34;newwindow #34;, #34;height=100,width=400,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no #34;)}-- /script 这里定义了一个函数openwin(),函数内容就是打开一个窗口。4、同时弹出2个窗口 scriptLANGUAGE= #34;JavaScript #34; !--functionopenwin(){window.open( #34;page.html #34;, #34;newwindow #34;, #34;height=100,width=100,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no #34;) amp;nbsp;window.open( #34;page2.html #34;, #34;newwindow2 #34;, #34;height=100,(227是什么意思:227事件指的是由于肖战粉丝不满cp粉的同人创作,在举报cp粉的同时举报了同人同台AO3,从而引起了各个圈子AO3用户的愤怒和反击,也被粉圈称为了227大团结。)width=100,top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no #34;)}-- /script 为避免弹出的2个窗口覆盖,用top和left控制一下弹出的位置不要相互覆盖即可。5、主窗口打开文件1.htm,同时弹出小窗口page.html scriptlanguage= #34;javascript #34; !--functionopenwin(){window.open( #34;page.html #34;, #34; #34;, #34;width=200,height=200 #34;)}-- /script

>