<div class="htmlarea"><textarea id="runcode39960"> <script type="text/javascript"> window.onload = function(){ var form = document.getElementsByTagName('form')[0]; form.yourForm.focus(); form.yourForm.select(); } </script><form action=""> <input type="text" name="textRange" size="50" value="这是豪情的blog,这里是技术的海洋,是人生的第一起跑线~!"> <textarea name="yourForm" rows="3" cols="40" wrap="virtual"> 豪情提示:这里是测试文本,初始时会被选中滴~!! </textarea><br><input onclick="runEx('runcode39960')" type="button" value="运行代码"> <input onclick="doCopy('runcode39960')" type="button" value="复制代码"> <input onclick="doSave(runcode39960)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</form></textarea></div>