<div id=show></div>
<input type=button value=show onclick='show.innerHTML+="sxy<br>"'>

解决方案 »

  1.   

    to weidegong
    请问这些代码是什么意思
      

  2.   

    设置<DIV id=show></div>块中内容
      

  3.   

    <div id=show></div>在这里面显示聊天内容。每次加上新的内容就可以了
      

  4.   

    to friends
    我照你说的代码试了一下,可以换行,
    但我现在想试如下代码
    <html>
    <meta http-equiv="refresh" content="2">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>New Page 1</title><body><p>
    </body>
    <script language=javaScript>
     
    top.middle.document.writeln("hello")
    top.middle.document.writeln('<br>')</script>
    </html>我想产生的效果是
    hello
    hello
    hello
    hello
    .
    .
    .
    但实际只在第一行显示,为什么?