<div class="htmlarea"> <textarea id="runcode27193"> <title>双重输入文字</title> <script language="javascript"> <!-- function doubleType(){ form1.txt2.value = form1.txt1.value; setTimeout("doubleType()",500); } //--> </script> <form name="form1"> <input type="text" name="txt1"> <input type="text" name="txt2"> </form> </textarea><br><input onclick="runEx('runcode27193')" type="button" value="运行代码"> <input onclick="doCopy('runcode27193')" type="button" value="复制代码"> <input onclick="doSave(runcode27193)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>