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 code fragment returns the domain name of the current document into a string variable called ”mydomain”:
mydomain = psDocument.Site( );