中国IT资源网 设为首页
加入收藏
网站建设
您当前的位置:中国IT资源网 -> 文章 -> 设计学院 -> 网页制作 -> 文章内容
 一种打开子窗口的方法[父页内创建子窗口]
<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>


评论】【打印】【 】【关闭
  UBB编辑器原来就这么简单 
  弹出窗口总结收集(续)
 
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 在线投稿

中国IT资源网版权所有
Copyright © 2002-2006 Gz235.Com All Rights Reserved
中华人民共和国电信与信息服务业务经营许可证编号 粤ICP备05022918号
本站在线服务QQ:105754049 程序定制:105754049 广告受理/投搞/投诉:105754049
本站所提供的程序均来自于 Internet(下载后首先检测是否有毒),仅供学习使用。因其产生的一切问题本站不负任何责任