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
  • 25,457
  • 50
  • 131
  • 201

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
  • 442,112
  • 142
  • 972
  • 1,088
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,965
  • 1
  • 30
  • 45