Re: server click event on enter press
- From: "Mike Labosh" <mlabosh@xxxxxxxxxxx>
- Date: Tue, 21 Jun 2005 12:52:37 -0400
> I have just written an applcation in asp.net. In testing i have found
> that the enter key press on a button does not fire a javascript confirm
> prompt. is there anyway i can get this to fire the event when the
> button is selected and enter is pressed.
What I have done in the past for this is to use the onsubmit event of the
form. That way, whether the user clicks the button or presses enter on it,
my onsubmit javascript will still run, and then as a bonus I can optionally
cancel the submit by having my javascript function return false.
--
Peace & happy computing,
Mike Labosh, MCSD
"Mr. McKittrick, after very careful consideration, I have
come to the conclusion that this new system SUCKS."
-- General Barringer, "War Games"
.
- References:
- server click event on enter press
- From: csgraham74
- server click event on enter press
- Prev by Date: Changing cookie values
- Next by Date: Re: Learning .NET
- Previous by thread: server click event on enter press
- Next by thread: Re: server click event on enter press
- Index(es):
Relevant Pages
|