如果用write来替writeIn,就没有错,
不明白用那个writIn有什么忌讳的,是不是IE不支持啊?
高手请解释一下这个!!!!!!!!!!
感谢感谢感谢!!!!!!!

解决方案 »

  1.   

    <html>
    <head>
    <title>open的应用</title>
    <Script Language = "JavaScript">
    function NewOne()
       {
         document.open()
         document.writeln("<BODY>")
         document.writeln("<PRE>")
         document.writeln("<h2>")
         document.writeln("床前明月光")
         document.writeln("疑似地上霜")
         document.writeln("举头望明月")
         document.writeln("低头思故乡")
         document.writeln("</h2>")
         document.writeln("</PRE>")
        }
    </Script></head><body>
    这是旧的内容<br>
    <form name = "ThisForm">
    <input type = submit name = "Press" value = "打开新文件" OnClick = "NewOne()">
    </form></body>
    </html>
      

  2.   

    document.writeIn  
    ->
    document.writeln是wirteln
    而不是writeIn
      

  3.   

    wanghr100(灰豆宝宝.net),又是您啊!!!!
    很感激!!!!!!!!!!!!!!
    可不可给您QQ或MSN啊!!
    不知怎样谢~~~~~~~~~~~~~~~~~~~~~~~~~