10 2010 档案
js禁用只读文本框获得焦点时的回格键
摘要:只读的文本框,当鼠标焦点在文本框里面的时候按回退键(backSpace),会退回到前一个页面,将以下的脚本放入页面中即可。<script>document.documentElement.onkeydown=function(evt){varb=!!evt,oEvent=evt||window.event;if(oEvent.keyCode==8){varnode=b?oEvent.t... 阅读全文
posted @ 2010-10-19 11:35 qqhepp 阅读(829) 评论(0) 推荐(0)