欢迎访问:常州市武进区嘉泽中心小学网站 !今天是:
栏目列表
您现在的位置是:首页>>教师>>计算机技术>>网站制作技术>>文章内容
一种打开子窗口的方法[父页内创建子窗口]
发布时间:2008-11-20   点击:   来源:本站原创   录入者:佚名
 

 <html>
  <head>
  <title>Test</title>
<script>
function openSubWin()
  {
  subWindow=window.open("", "newwin", "height=250, width=250,toolbar=no ,scrollbars="+scroll+",menubar=no"); 
  subWindow.document.write("<TITLE>Op</TITLE>")
  subWindow.document.write("<BODY BGCOLOR=#ffffff>")
  subWindow.document.write("<h1>Hello!</h1>")
  subWindow.document.write("New window opened!")
  subWindow.document.write("</BODY>")
  subWindow.document.write("</HTML>")
  subWindow.document.close() ;
  }

</script>
  </head>
  <body>
  <a href="#" onclick="openSubWin()">open</a>
  </body>
  </html>


附件:
    关闭窗口
    打印文档
    账号登录
    保持登录 忘记密码?
    账号与武进教师培训平台同步