在BHO中检测页面刷新 [英] Detect Page Refresh in BHO

查看:76
本文介绍了在BHO中检测页面刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE不会触发DocumentComplete&页面刷新(F5)后出现NavigateComplete2事件.

IE doesn't fire DocumentComplete & NavigateComplete2 events after a page refresh (F5).

这显然是设计使然",但它使得响应页面重新加载变得困难.

This is apparently "by design", but it makes it hard to respond to a page reload.

哪种方法取得了最大的成功?有哪些警告?谢谢

What approaches out there have had the best success? What are the caveats? Thx

推荐答案

没有直接方法,因此很难在不同版本的IE中实现.虽然您可以结合使用一些事件来实现.请注意,以下方法并非万无一失.

There is no direct method and it is hard to implement across different versions of IE. Although you can use combination of some events to achieve that. Be warned the following approaches are not fool proof.

链接:

  1. MSDN论坛
  2. 检测IE Refresh按钮
  3. 刷新并显示DISPID_DOCUMENTCOMPLETE
  1. MSDN Forum
  2. Detecting the IE Refresh button
  3. Refresh and DISPID_DOCUMENTCOMPLETE

这篇关于在BHO中检测页面刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆