Returns the domain name for the current document.
PSDocumentClass object
psDocument.Site( )
String
At runtime, Site retrieves the value of the SERVER_NAME server environment variable.
The following example returns the domain name of the current document into a variable called ”mydomain”:
mydomain = psDocument.Site( );