Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

XML
<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>


C#
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 ??
Posted
Updated 28-Sep-14 21:05pm
v2

1 solution

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: [^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900