Displaying extended link info with TDHTMLEventHandler

This sample program demonstrates the use of TDHTMLEventHandler component to display additional information about each link on a loaded Web page.

The code loads a Web page into the embedded WebBrowser control and enumerates its Document.Links collection. For each link, OnMouseOver and OnMouseOut events are intercepted using two separate TDHTMLEventHandler components. The program also makes up some information about the target location of a link (pretending that it has pre-fetched the destination URL and analyzed it in some way),  packs it into a variant array and passes to the event hook being created.

After you press the [Hook] button on the form, the sample will display some bogus "additional information" for any link on this page.  Below are some random links to test this functionality:

BetterBrowser's home page
My personal page
Other components from my collection
AltaVista Search Engine

Hang Sim - The Light Aviation Flight Simulator

HREF Tools Corp.

 

BetterBrowser's
component collection
Design by Alexei M Reatov, (C) Copyright 1999
Contact me by e-mail