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();
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();
相关文章推荐
- 关于区别docuemnt.write()和document.getELementById().innerHTML=""
- js技术要点---document.write("")方法在IE浏览器和火狐浏览器下面的兼容性问题
- "physical standby"置于read/write状态
- Document root element "form-validation", must match DOCTYPE root "null"
- iOS7-解决 "The document “XXXX.xib/storyboard" could not be opened. Could not read archive"
- $("#id")与document.getElementById("id") 即 jQuery对象和DOM对象相互转换
- js中null和 document.getElementById("userId")小结
- ORA-19502: write error on file "", block number (block size
- 解决ssh的"Write failed: Broken pipe"问题
- document write & close
- 升级IE弹出"以前的安装有尚未完成的操作,需要重新启动。建议在运行Internet Explorer安装程序之前重新启动计算机。现在安装程序将关闭"
- "Microsoft Office Word 遇到问题需要关闭"如何解决?
- 关于Symbian的"程序已经关闭"错误
- "MtkWriteTool.exe Flash tool.exe应用程序正常初始化(0xc0150002)失败。请单击“确定”,终止应用程序。"解决方案
- JS中:关于form中的Checkbox的操作: document.getElementsByName("name"),如何取消选中状态,如何将文本框内容清空
- Document root element "beans", must match DOCTYPE root "null".
- document.onreadystatechange |||| document.readyState == \"complete\"
- 【转】JS写图层方法.document.createElement("div")
- Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an eleme