D
Dan
Consider a simple form with a textbox and button.
Is there a way to handle the common situation where a user presses "return"
rather than clicks on the button.
I can already detect the "return" key press using the textbox's onkeypress
event and now what I'm looking for is something like:
onkeypress="if 'return' key pressed, then button.click=True"
Any ideas?
Is there a way to handle the common situation where a user presses "return"
rather than clicks on the button.
I can already detect the "return" key press using the textbox's onkeypress
event and now what I'm looking for is something like:
onkeypress="if 'return' key pressed, then button.click=True"
Any ideas?