Working with asp.net, and I am trying to find a way to change default ENTER key press target on client side. Based on something like the currently focused div or input.
The target would be asp.net button controls with postback event.
Looking for solution for both IE and Firefox.
I am also using WebForm_FireDefaultButton(event, controlId) trying to set the default button but it doesn’t work for Firefox; work fine for IE though.
here is the cause and solution i just found
Asp.Net Form DefaultButton Error in Firefox
basically, on whatever event you prefer, call the following “FireDefaultButton” function to set the default fire button. The out of box function “WebForm_FireDefaultButton” does not compatible with Firefox (see the link for detail)