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