document对象 文档输入输出问题
为什么页面跳转不过去?哪里错了,求指教
<script language="javascript">
<!--
function newopen(){
var dw=window.open();
dw.document.open();
dw.document.write("<html><head><title>一个新的页面</title>");
dw.document.write("<script language='javascript'>");
dw.document.write("function woc(){document.write('笑笑');}");
dw.document.write("</script></head>");
dw.document.write("<body>");
dw.document.write("<img src='image/mmexport1427618752278.jpg'><br/>");
dw.document.write("这里是写入的新内容<br/>");
dw.document.write("<input type='text'/>");
dw.document.write("</body></html>");
dw.document.close();
}
-->
<body>
<input type="button" value="打开一个新文档" onClick="newopen();" />
</body>