新学两招:

Dim doc,script
 Set doc=ControlPlanPopWin.document      

' 通过脚本注入改变alert的行为
Set script. =doc.createElement("script")
script.text="var alert=function(){return true}; "
doc.appendChild(script)

' 通过脚本注入改变confirm的行为
Set script. =doc.createElement("script")
script.text="var confirm=function(){return true};"
doc.appendChild(script)

相关文章:

  • 2021-12-30
  • 2021-05-28
  • 2021-05-27
  • 2021-12-23
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2021-08-10
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2021-11-19
  • 2022-12-23
  • 2021-08-16
  • 2021-11-07
相关资源
相似解决方案