THtmlViewer, TFrameViewer, and TFrameBrowser components
procedure LoadFromFile(const FileName: ThtString; DocType: THtmlFileType = HtmlType);
The LoadFromFile method loads a document of the given type for viewing, where Filename is the name and DocType the type of the file to be loaded.
Filename may optionally contain a document position identifier separated from the actual filename by a # sign.
Viewer.LoadFromFile('MyHTML.htm#Contents');
would load MyHTML.htm and position the view to the location where the "Contents" target was defined.