WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead. See sjs-4: domain.

File.prototype.domain()

Returns the domain name a file is located on.

Syntax

file.domain() string

Description

Returns the domain name of the filesystem a file is located on. It is the same as the name of the website’s root file.

Examples

Basic example.

Domain of the temporary filesystem.

Subscribe to our newsletter!