页面上的所有内容并不都是查看源文件里的那些
而用以下命令则可以看到全部javascript:document.body.innerHTML%20=%20"<textarea%20style='width:700px;%20height:500px'>"%20+%20document.documentElement.innerHTML%20+%20"</textarea>"
因此你可以将document.documentElement.innerHTML的值保存就可以了

解决方案 »

  1.   

    楼上的,好人做到底嘛,帮我写个语句,另存为XLS文件,偶JAVASCRIPT很菜的说
      

  2.   

    //将用户在文本框里的输入信息在用户另存页面时一起保存
    <!-- Tell the browser the page is persistent-->
    <META NAME="save" CONTENT="snapshot">
    <!-- Define the class for the persistent object-->
    <STYLE>
        .saveSnapshot {behavior:url(#default#savesnapshot);}
    </STYLE><!-- When the page is saved, the information entered in the
         persistent form element will be inserted as the value
         within the HTML file.-->
    <INPUT TYPE=text CLASS=saveSnapshot ID=oPersistInput>
      

  3.   

    如果是一个页面也能通用么
    因为我改的是TABLE
      

  4.   

    梅花雪大哥,不行啊,我试了,给TABLE加上一个CLASS不行,它的值还是不会保存下来
      

  5.   

    http://community.csdn.net/Expert/topic/4758/4758007.xml?temp=.9836542
      

  6.   

    userData behavior,参看我上面的回复