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.