S
sameergn
Hi,
I have an image in my HTML form which has onclick() handler. There is
also a submit button and a text box.
Whenever text box has focus and user presses enter, the onclick() event
of image is fired with event.keyCode as undefined. I was expecting that
the form would get submitted.
I tried returning from onclick() handler if keyCode is null, but the
event does not propagate further. Does anybody know solution to this?
Thanks,
Sameer
I have an image in my HTML form which has onclick() handler. There is
also a submit button and a text box.
Whenever text box has focus and user presses enter, the onclick() event
of image is fired with event.keyCode as undefined. I was expecting that
the form would get submitted.
I tried returning from onclick() handler if keyCode is null, but the
event does not propagate further. Does anybody know solution to this?
Thanks,
Sameer