Detect Page Refresh in BHO

吃可爱长大的小学妹 提交于 2019-12-07 17:33:21

问题


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


回答1:


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.

Links:

  1. MSDN Forum
  2. Detecting the IE Refresh button
  3. Refresh and DISPID_DOCUMENTCOMPLETE


来源:https://stackoverflow.com/questions/8555627/detect-page-refresh-in-bho

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!