您的位置:首页 > 其它

document.write("关闭")

2009-02-25 16:04 453 查看
1 OpenWindow=window.open("", "newwin", "height=250, width=250,toolbar=no ,scrollbars="+scroll+",menubar=no");
2  OpenWindow.document.write("<HTML>");
3  OpenWindow.document.write("<TITLE>例子</TITLE>");
4  OpenWindow.document.write("<BODY BGCOLOR=#ffffff>");
5  OpenWindow.document.write("<h1>Hello!</h1>");
6  OpenWindow.document.write("New window opened!");
7  OpenWindow.document.write("<FORM> ");
8  OpenWindow.document.write("<INPUT TYPE='BUTTON' VALUE='关闭' onClick='window.close();'>");
9  OpenWindow.document.write("</FORM>");
10
11  OpenWindow.document.write("</BODY>");
12  OpenWindow.document.write("</HTML>");
13  OpenWindow.document.close();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐