<div class="htmlarea"> <textarea id="runcode30738"> <script language="JavaScript"> <!-- var hotkey=97 var destination="http://www.jb51.net" if (document.layers) document.captureEvents(Event.KEYPRESS) function backhome(e){ if (document.layers){ if (e.which==hotkey) window.location=destination; } else if (document.all){ if (event.keyCode==hotkey) window.location=destination; } } document.onkeypress=backhome onkeydown="javascriptnenter();" function onenter(){ if(event.keyCode==13){ alert("回车"); } } </script> </textarea><br><input onclick="runEx('runcode30738')" type="button" value="运行代码"> <input onclick="doCopy('runcode30738')" type="button" value="复制代码"> <input onclick="doSave(runcode30738)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>