重载DOM中confirm
window.confirm = function(str) {??
??? str=str.replace(/\'/g,?? "'&chr(39)&'").replace(/\r\n|\n|\r/g,?? "'&VBCrLf&'");??
??????? execScript("n?? =?? msgbox('"+?? str?? +"',?? 3,?? '提示')",?? "vbscript");??
??????? return(n);???
???}
?
// 调用
function send(){
???var v = confirm("提示?\u000d 是(Y):是\u000d 否(N):否");
???if (v=='6') {
???? alert('是');??
?? } else if(v=='7') {
????alert('否');???
???} else {
????alert('取消');???
???}
}