如果你是在一个form下面
<form name=form1>
<input type='text' name='test' value='ABC'>
</form>使用form1.test.outerHTML="ABC"这样子应该就可以