-----045-Document-open.html-----
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>标题</title> </head> <body> <script type="text/javascript"> function newDoc() { doc = document.open(); doc.write("<h2>新打开文档流</h2>") doc.close(); } </script> <button onclick="newDoc()">Open</button> </body> </html>