当前位置:编程学习 > VB >>

VB的webbrowser弹出窗口如何赋值为"否"

VB的webbrowser弹出窗口如何赋值为"否"

我已经测试了 ,alert和confirm弹出窗口通过以下方法 已经解决:

pDisp.Document.parentWindow.execScript "window.alert=null;"  '屏蔽alert弹出窗口
pDisp.Document.parentWindow.execScript ("function  confirm(){return   true;}")

但是下面的弹出窗口如何赋值为"否"?


 pDisp.Document.parentWindow.execScript ("function close(){return   chr(78);}")好像这样不对,高手指教
补充:VB ,  网络编程
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,