<html>
  <body>
    <div id="aaa">这里是显示的文字</div> 
    <input type="button" name="cc" value="click" onclick="aaa.innerText='这里是';">
  </body>
</html>

解决方案 »

  1.   

    <html>
    <script>
    function change()
    {
      document.body.childNodes[0].nodeValue='您想要替换的内容';
    }
    </script>
      <body>
        这里是显示的文字
        <input type="button" name="cc" value="click" onclick="change()">
      </body>
    </html>
      

  2.   

    呵呵,就这样写啊
    <P ID=oPara>Here's the text that will change.</P><BUTTON onclick="oPara.innerText='WOW! It changed!'">Change text</BUTTON>
    <BUTTON onclick="oPara.innerText='And back again'">Reset</BUTTON>
    这个也可以试试
      

  3.   

    thanks
    你们这些都是从哪里学的啊,我也很想学好javascript可是好像没有什么好的书和,深入的网站,请高人指点!