比如:<html>
<head>
</head>
<body>
testvalue
</body>
</html>
而非<html>
<head>
</head>
<body>
<input name="test" type="text" value="testvalue">
</body>
</html>

解决方案 »

  1.   

    <Script defer>
    test.outerHTML = test.value</Script>
      

  2.   

    <html>
    <head>
    </head>
    <body>
    <input name="test" type="text" value="">testvalue
    </body>
    </html>
      

  3.   

    <input name="test" type="text" onblur="t.innerText=this.value">
    <span id="t"></span>
      

  4.   

    document.all["Q"].innerHTML = "fdssd"
    <table > <tr><td id="Q"> </td></tr></table>
      

  5.   

    呵呵,二楼的最经典:)<input name="test" type="text" value="testvalue" style="border:none;background-color:transparent;" />楼主到底想怎么样?