我已经开发了asp.net应用程序,因为我有客户端的搜索选项。当我在文本框中输入客户端名称时,我按Enter键从keybord它工作正常在Firefox和Chrome,但并没有在IE8火在这里,我交亩代码,我所做的KeyEvent的火如何在IE浏览器按钮事件中触发按键事件
<script type="text/javascript">
function KeyPress() {
if (event.keyCode == 13) { //if they pressed enter key then..
document.formname.LoginButton.focus();
}
}
</script>
我怎样才能解决这个火在IE普莱舍helpme按键事件...
如何将此代码添加到按钮? – VMAtm
嗨,谢谢你给我的回应,就像我所说的那样。 “ asp:TextBox> –
Victor