HTMLExpandFilename Method


Applies to

THtmlViewer, TFrameViewer components

Declaration

function HTMLExpandFilename(const Filename: string): string;

Description

HTMLExpandFilename converts an HTML style file URL to a Dos filename and adds an appropriate path. The path added depends on:

1.If the URL starts with a '/' or '\', the path defined by the ServerRoot property is used.

2.If the <base> tag specifies "DosPath", then no path is added. Files are then searched for in the usual Dos/Windows manner.

3.If the <base> tag specifies another path then that path will be added. File locations are then relative to the base path.

4.If there is no <base> tag, then the path of the current HTML file is used. File locations are then relative to that directory.

See also

Base Property

HTMLToDos Function

ServerRoot property