#2
yms1232007-11-18 15:56
利用onChange事件 [CODE]<html> <title>实时输入显示</title> <head> <script language="javascript"> function TxtA_Change(val) { var DispDiv=document.getElementById("ShowInp"); DispDiv.innerHTML=val; } </script> </head> <body> <input type="text" name="TxtA" onChange="TxtA_Change(this.value);" > <div id="ShowInp"></div> </body> </html>[/CODE]
|