HTMLTITLE unit.

Simply add this to your USES clause, and you have the ability to 
extract the title from a webpage.

You simply need to use the function ExtractHTMLTitle.
It takes two parameters - a string and a boolean, 
and returns a string containing the title, minus the html tags.
Parameters:
The string is the filename of the webpage, eg. "c:\temp\index.html"
The boolean refers to the 'interactivity' option. If false, 
an untitled document will return 'Untitled'.
If true, the end-user is prompted, and the title is written into 
the actual webpage.
If you would rather override the interactivity option, simply set 
it to false and write your own handler based on what happens if 
the function returns 'Untitled'.
Additionally, if the end-user chooses 'Abort' from the dialog box, 
the function returns '_-_' at the front of the return string.
You need to write routines to turn off interactivity when this is 
encountered if you wish to enable the Abort button. (See source 
for 'HTML Indexer' - this is a very simple task.)

In essence, with interactivity off, this function is very easy indeed 
to use, and enables the proper titling of pages within your programs.


Freely distributable. Copyright Greg Fox, Pork to Bacon Software.