File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Selecting Default Button in "Confirm" Box!
Joined: Oct 06, 2006
Dec 06, 2006 11:27:00
return confirm('Blah Blah.');
It displays 'OK', 'Cancel' buttons. By default 'Ok' is selected and
upon clicking "Enter" button 'Ok' is fired.
Will it be possible to select 'Cancel' by default. So that when user
clicks 'Enter', 'Cancel' will be triggered?
Author and ninkuma
Joined: Jan 10, 2002
Dec 06, 2006 13:00:00
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Selecting Default Button in "Confirm" Box!
OK button in a Form
Can I change the buttons in a confirm alert box to 'Yes' , 'No'?
confirm() and prompt() functions
Confirm box ok/cancel to Yes/No.
how to create type button in JSF using SUN RI
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014