77
rated 0 times
[
78]
[
1]
/ answers: 1 / hits: 37113
/ 15 Years ago, mon, november 9, 2009, 12:00:00
I am displaying a JavaScript confirm box when the user clicks on the Delete Data button. I am displaying it as shown in this image:
In the image, the OK button is selected by default. I want to select the Cancel button by default, so that if the user accidentally presses the enter key, the records will be safe and will not be deleted.
Is there any way in JavaScript to select the Cancel button by default?
More From » jquery