http://codeigniter.org.cn/forums/thread-10868-1-1.html
function keydown(e) { var currKey=0,e=e||event; if(e.keyCode==13) { alert('ddd'); } } document.onkeydown=keydown; |