一种打开子窗口的方法[父页内创建子窗口]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 sykpboy 的 blog

 <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>

本文关键:一种打开子窗口的方法[父页内创建子窗口]
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top