Just do some research on the default behavior of the favicon. Basically, first check if the page has explicitly declared an external favicon (would be in the DocumentText )
Here's an example of what an external favicon HTML looks like:
If that is not found, check the default location for the favicon (i can't remember off the top of my head whether it is in the document root directory, or the relative root of the current page, you'll have to look it up) if that isn't found, display the default blank page icon.
That's about all you need to do.
Hell yeah thnx...
i will try it tomrw i will sleep now