# ServerRoot Property

## Applies to

THtmlViewer, TFrameViewer components

## Description

property ServerRoot: string;

The ServerRoot property establishes an effective root directory on disk. URLs which begin with a slash (or backslash) are considered to be relative to this directory. If no ServerRoot is specified, the root is taken to be the root directory of the current drive.

## Example

ServerRoot := 'C:\MyDirectory';

The URL:

/images/new.gif

will be now be translated to:

C\MyDirectory\images\new.gif