[CODE]<html> <body> <form name="form1"> <input type="text" id="txtShow" > <input type="button" onClick="Init()" value="Value Show!"> <input type="button" onClick="Init2()" value="innerText Show!"> </form> <div id="txtShowDIV"></div> </body> </html>
<script language=javascript> function Init() { document.form1.txtShow.value="hello"; } function Init2() { txtShowDIV.innerText="hello"; } </script>[/CODE]