<script> function window.confirm(str){ execScript("n = msgbox('"+ str +"', 257, '自定的的 confirm')", "vbscript"); return(n); } alert(confirm('abcd')); </script> 参考:http://blog.excelhome.net/user1/fanjy/archives/2006/461.html