ASP.NET - Below this code working IE browser but not working in Firebox

Asked By dhanush kodi on 23-Jul-12 08:37 AM
Page_load()
{
txtGroupCode.Attributes.Add("onkeypress", "return RestrictSpecialCharsBC('txtGroupCode',10);");
}

this code working IE browser calling javascript but not working firebox.. i need to work firebox.

Any body know pls rly

Advance thanks.
Robbe Morris replied to dhanush kodi on 23-Jul-12 08:56 AM
Is this function getting fired at all?

RestrictSpecialCharsBC
Peter Bromberg replied to dhanush kodi on 23-Jul-12 01:26 PM
I tried your code and it works fine in Firefox. So you have something else happening there, perhaps the function signature and what is being passed to it.  You can hit CTRL-SHIFT-K in Firefox to bring up the developer console and see if there are any javascript errors.