[英]Changing javascript confirm dialog box to bootstrap
我已经这东西了
这是原始代码:
<script type='text/javascript'>
function delete_user( id ){
var answer = confirm('Are you sure?');
//if user clicked ok
if ( answer ){
//redirect to url with action as delete and id to the record to be deleted
window.location = 'delete.php?id=' + id;
}
}
</script>
如何删除旧的JavaScript确认对话框,然后将其替换为引导程序?
方法“ confirm”(显示模式确认对话框)与Mozilla Firefox使用的XPInstall API关联。 自Gecko 1.9起不推荐使用此方法,并且很可能无法通过引导程序配置。 可以在以下位置找到参考: https : //developer.mozilla.org/en-US/docs/Archive/Mozilla/XPInstall/Reference/Install_Object/Methods/confirm和https://developer.mozilla.org/en-US/ docs / Archive / Mozilla / XPInstall
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.