document對象 文檔輸入輸出問題
為什么頁面跳轉(zhuǎn)不過去?哪里錯了,求指教
<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("這里是寫入的新內(nèi)容<br/>");
dw.document.write("<input type='text'/>");
dw.document.write("</body></html>");
dw.document.close();
}
-->
<body>
<input type="button" value="打開一個新文檔" onClick="newopen();" />
</body>
2016-04-23
js代碼沒有閉合,這么多內(nèi)容是要實現(xiàn)什么啊。好亂