计算机二级考试VisualBasic辅导:vbwebbrowser禁示弹出对话框的代码
来源:优易学  2010-1-15 16:05:52   【优易学:中国教育考试门户网】   资料下载   IT书店
  Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant) 
  Dim oDoc1 As HTMLDocument 
  Set oDoc1 = pDisp.Document 
  oDoc1.parentWindow.execScript "function alert(){return;}" 
  oDoc1.parentWindow.execScript "function confirm(){return;}" 
  oDoc1.parentWindow.execScript "function showModalDialog(){return;}" 
  End Sub 

责任编辑:cyth

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训