当前页面: 开发资料首页 → 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>