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

[ 2005-06-29 08:46:37 | 作者: Admin ] 字号: | |
<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>
Share
评论Feed 评论Feed: http://www.85815.com/feed.asp?q=comment&id=453
UTF-8 Encoding 引用链接: http://www.85815.com/trackback.asp?id=453&key=
这篇日志没有评论.
发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:   注册?
验证码 * 请输入验证码