<div class="htmlarea"> <textarea id="runcode96769"> <title>无忧脚本代码测试网页</title> <script type="text/javascript"> function ck(){ alert("test"); } var ins=document.createElement('input'); ins.type="button"; ins.value="click"; ins.attachEvent("onclick",ck); document.body.appendChild(ins); </script> </textarea><br><input onclick="runEx('runcode96769')" type="button" value="运行代码"> <input onclick="doCopy('runcode96769')" type="button" value="复制代码"> <input onclick="doSave(runcode96769)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>