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
Nope, the
confirmdialog 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
confirmin that they don’t return a “yes / no” value, but require you to bind events to the dialog’s buttons.