在html文件中的<body>和</body>之间插入内容。

解决方案 »

  1.   

    你把它保存起来不就可以了嘛,可以去学学HTML的
      

  2.   

    <html>
    <head>
    <style> .userData {behavior:url(#default#userdata);} </style>
    <script for=window event=onload>
     DoLoad();
    </script>
    <script for=window event=onbeforeunload>
      DoSave();
    </script>
    <script>
    function DoSave(){
      foo.setAttribute("content", foo.innerHTML);
      foo.save("EditContent");
    }
    function DoLoad(){
      foo.load("EditContent");
      content = foo.getAttribute("content");
      if (content != null) foo.innerHTML=content;
    }
    function DoClear(){
      foo.innerHTML = "";
    }
    </script>
    </head>
    <body>
    <p align=center>
      <button onClick='DoSave()'>Save</button>
      <button onClick='DoClear()'>Clear</button>
      <button onClick='DoLoad()'>Load</button>
    </p>
    <div id=foo class=userData contentEditable=true style="width:100%;height:90%">
    </div>
    </body>
    </html>ie5.5以上才支持.