confirm("提示字符串") 
返回值 true(点击确定) or false(点击取消)
for example:if(confirm("真的要删除吗?")){
    //执行删除
}
else{
   //执行不删除
}