Tab键未在IE和Safari中的TextChanged事件中触发 [英] Tab key not firing in TextChanged event in IE and Safari

查看:56
本文介绍了Tab键未在IE和Safari中的TextChanged事件中触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有五个文本框,每个文本框都有text_Textchanged事件。在浏览器中构建IE后,单击Tab键时Safari不会触发。同样的问题在Firefox和Chrome中也有效。如何解决我的问题..?给我任何想法



刚刚添加到javascript下面它在IE浏览器中工作,但是在Safari中没有工作我的脚本



我的脚本是这样的



Hi all,

I have five textboxs each and every textbox having text_Textchanged event. after build in browser IE and Safari not firing when click on tab key. same issue was working in Firefox and Chrome. how to solve my issue..? give me any ideas

just now am added below javascript its working in IE browser, but not working in Safari my script

my script like this

<script language="JavaScript">

function ModifyEnterKeyPressAsTab() {

    if (window.event && window.event.keyCode == 9) {

        window.event.keyCode = 13;

    }

}

</script>







<asp:TextBox ID="txtOver1" runat="server" class="newtextbox"

                            AutoPostBack="True" ontextchanged="txtOver1_TextChanged" onKeyDown="return ModifyEnterKeyPressAsTab();" MaxLength="10"></asp:TextBox>









谢谢关于





thanks and regards

推荐答案

您可以使用javascript检测标签键本身。请参阅此链接
You can detect the tab key itself using javascript.Refer to this link


这篇关于Tab键未在IE和Safari中的TextChanged事件中触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆