HostnameJS - Global

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • The HostnameJS script include provides methods to format host names according to property settings.

    Use with any server-side script when you need to format host names.

    HostnameJS - format(String hostname, String source)

    Formats the specified host name according to the property settings.

    표 1. Parameters
    Name Type Description
    hostname String The host name to format
    source String The property settings source
    표 2. Returns
    Type Description
    String The system name

    HostnameJS - getDomainName()

    Returns the DNS domain name.

    표 3. Parameters
    Name Type Description
    None
    표 4. Returns
    Type Description
    String The domain name
    var hjs = new HostnameJS();
    hjs.getDomainName();

    HostnameJS - getSysName()

    Returns the current system name.

    표 5. Parameters
    Name Type Description
    None
    표 6. Returns
    Type Description
    String The system name
    var hjs = new HostnameJS();
    hjs.getSysName();