JS——JavaScript Confirm

function show_confirm()
{
var r=confirm("Press a button!");
if (r==true)
{
alert("You pressed OK!");
}
else
{
alert("You pressed Cancel!");
}
}


看了这个,我想大部分人都会明白Confrim的用法的。。
posted @ 2013-07-30 14:54  艺言弈行  阅读(277)  评论(0编辑  收藏  举报