<div class="htmlarea"> <textarea id="runcode89495"> <title></title> <script type="text/javascript"> function enterPress(e) { if (e.keyCode == 13) { login(); } } function login(){ //登录验证等 alert('login'); } </script> <table id="logintable" border="1" cellpadding="0" cellspacing="0"> <tr> <td> Username:<input id="userName" type="text" name="userName" style="width: 90px;" onkeydown="javascript: enterPress(event);"> </td> <td> Password:<input id="password" type="password" name="password" style="width: 90px;" onkeydown="javascript: enterPress(event);"> </td> <td> <input id="login" type="button" value="Login" onclick="login()"> </td> </tr> </table> </textarea><br><input onclick="runEx('runcode89495')" type="button" value="运行代码"> <input onclick="doCopy('runcode89495')" type="button" value="复制代码"> <input onclick="doSave(runcode89495)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>