Posted by Michael Fesser on 12/04/07 14:28
..oO(jodleren)
>Say, I have a form.
>
>Both cancel and save (in that order) are submits, then in the code I
>check which button was pressed.
>The point is that I want the save button (2nd) to be default, not the
>cancel.
>
>Is there a way (in js?) to "focus" the other button?
No. But why do you need a cancel button at all? Usually it's as useless
as a reset button.
>One other way to be some simple js, which submits the page anyway...
Even worse and unreliable.
Micha
[Back to original message]
|