How to monitor click in Internet Explorer

Posted on 2004-11-20
Last Modified: 2013-12-03
I want to create a dll or exe that monitor Click in Internet Explorer and  decide to navigate the clicked link or abort it. I looking for sample code.


Thanks in advanced
Question by:Madnik7
    LVL 86

    Accepted Solution

    There's an MFC sample that illustrates that by intercepting the BeforeNavigate2 Event
     - see ("MFCIEEvtSpy")
    LVL 4

    Assisted Solution

    what you want is accomplished via Browser Helper Objects (aka BHO). They can be nice helpers like download managers or irritating pests like most spyware programs.

    If you write a BHO be sure to inform your users about the nature of its operation.

    15seconds  has a tutorial with source code, on the subject. take a look at

    Author Comment

    Thanks you jkr and alikoank
    Both of your solution near my request, but just one problem remain

    * MFCIEEvtSpy launch its own Internet Explorer (I don’t need host webcontrol). Hope tell me a way how any instance of IE load it like plugins.
    * 040331.htm need to I click the toolbar button too.

    I want a sample source like them but all internet explore instance must load it without the need of user click on tool bar.
    Wish you help me more
    Thanks in advanced

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
    This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now