Currently working on a project in asp.net, and I am exploring options to dynamically change the target of the ENTER key press on the client side. The goal is to determine the target based on the currently focused div or input element.
The desired targets are asp.net button controls with postback events.
I am seeking a solution that will work for both Internet Explorer and Firefox browsers.
In my attempts, I have utilized the
WebForm_FireDefaultButton(event, controlId)
function to set the default button, but unfortunately it does not function properly in Firefox; it works correctly in IE.