Example of Hyperlink Cues with Favicons

On this page, the javascript looks for a ul tag with the class of "favilist". Then it goes through every link in that list and looks to see if the href starts with "http:", which would indicate that it's an external link. If so, it grabs the favicon off that domain name and inserts it before each link. If no favicon exists, it uses a locally stored image (external gif here) to indicate the link is external.

A List of Some Articles to Read

A List of Some Articles to Read (no favicon examples)

For sake of demonstration, and to make it easy for you to view source for everything, both CSS and JavaScript are in the head of this document. In real-world implementation, it is best practice to use external files for each when possible.