页面中引入下面的OBJECT
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0></OBJECT>
关闭事件执行:document.all.WebBrowser.ExecWB(45,1);
document.all.WebBrowser.ExecWB(45,1);