开发者

javascript confirm function customisation [duplicate]

This question already has answers here: 开发者_运维问答 Closed 12 years ago.

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 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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜