母版页中屏蔽回车
  function KeyEnter() {
                    if (window.event.keyCode == 13) {
                        window.event.keyCode = 0;
                        window.event.returnValue = false;
                    }
                }

                document.oncontextmenu = KeyEnter;
                document.onkeydown = function() { KeyEnter() };
posted on 2010-07-30 16:58  Jack.Wang  阅读(229)  评论(0编辑  收藏  举报