站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Javascript 专题一种打开子窗口的方法[父页内创建子窗口]

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

摘要: 一种打开子窗口的方法[父页内创建子窗口]
<tr> <td>
  <head>
  Test
<script>
function openSubWin()
{
subWindow=window.open("", "newwin", "height=250, width=250,toolbar=no ,scrollbars="+scroll+",menubar=no");
subWindow.document.write("Op")
subWindow.document.write("<body BGCOLOR=#ffffff>")
subWindow.document.write("

Hello!

")
subWindow.document.write("New window opened!")
subWindow.document.write("</body>")
subWindow.document.write("")
subWindow.document.close() ;
}

</script>
  </head>
  <body>
  open
  </body>
  

</td> </tr> </table>
↑返回目录
前一篇: JavaScript网页验证函数(使用正则表达式)
后一篇: UBB编辑器原来就这么简单