0

Possible Duplicate:
custom choices in javascript confirm dialog.

function confirmdel(msg) 
{
 var agree=confirm(msg);
 if (agree)
   return true ;
 else
  return false ;
}

this is general delete confirmation java script function ,

it ask to user,

Hit

Confirmation dialog box with Ok or Cancel ,

I want to change this ok cancel buttons to Continue and Dont-continue ,

Is it possible ,

Thanks

Community
  • 1
  • 1
Bharanikumar
  • 24,893
  • 50
  • 129
  • 194

2 Answers2

3

Nope, the confirm dialog can't be customized.

You would have to resort to a custom dialog box solution, like jqModal or (relatively big) jQuery UI.

Note that those dialog solutions often work slightly differently than confirm in that they don't return a "yes / no" value, but require you to bind events to the dialog's buttons.

Pekka
  • 431,103
  • 135
  • 960
  • 1,075
1

You can use some javascript-based popups with custom message and custom buttons. For example, jquery ui modal dialog or modal popups.

Aidas Bendoraitis
  • 3,805
  • 1
  • 31
  • 44