Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to set focus to "Cancel" button in the confirm message box??



Thanks,
Surbhi
Posted

1 solution

JavaScript native confirm is not flexible. It does what it does and is highly suitable for quality programming; it also creates a modal window, which is inconvenient, it has style depending on your OS and browser styles, so you cannot style it. Just don't use it.

One of the fancy and flexible alternatives is, for example, jQuery dialog: http://jqueryui.com/dialog[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900