在Firefox浏览器中单击文本框字段页面向上移动 [英] In Firefox Browser When I Click On Textbox Field The Page Move Upward

查看:108
本文介绍了在Firefox浏览器中单击文本框字段页面向上移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户注册页面

问题是有一个带有一些javascript方法的文本框被解雇o在文本框中输入数字

没有问题所有工作正常在Internet Explorer中,但问题出现在firefox

当我点击该文本框时,页面向上移动,我无法键入任何文本框,光标只在文本框上,但在输入任何东西没有任何反应,不能写任何东西,而在Internet Explorer中工作正常。



I have a customer registration page
the issue is that there is a textbox with some javascript method which gets fired o typing number in the textbox
There is no issue all working fine in Internet explorer but the problem arisses in firefox
When i click on that text box the page moves upside and i am unable to type anything to that Textbox the cursor is on the textbox only but on typing anything nothing happens, cant write anything on that whereas same is working fine in internet explorer.

<asp:TextBox ID="txtRegSearchPincode" CssClass="textboxostyle" Text="Search By Pin"

                                                                               ToolTip="Search By Pin Code" Width="80px" MaxLength="6" onkeypress="return AllowNumericRegPinCodeOnly(this,event);"

                                                                               runat="server" onblur="WaterMarkSearchPinCode(this, event);" onfocus="WaterMarkSearchPinCode(this, event);"></asp:TextBox>







function WaterMarkSearchPinCode(txtPincodeSearch, event) {
       var defaultSearchPinCode = "Search By Pin";

       // Condition to check textbox length and event type
       if (txtPincodeSearch.value.length == 0 & event.type == "blur") {
           //if condition true then setting text color and default text in textbox
           txtPincodeSearch.value = defaultSearchPinCode;
       }
       // Condition to check textbox value and event type
       if (txtPincodeSearch.value == defaultSearchPinCode & event.type == "focus") {
           txtPincodeSearch.value = "";
       }
   }













为什么会发生这种情况?







Why is this happening ??

推荐答案

对于特定浏览器变体行为的特定问题,我建议你从Mozilla / FireFox支持提问:StackOverFlow:[ ^ ],在Mozilla:[ ^ ]。
For such a specific question about a specific browser's variant behavior, I suggest you ask the question from Mozilla/FireFox support: on StackOverFlow: [^], at Mozilla: [^].


这篇关于在Firefox浏览器中单击文本框字段页面向上移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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