다음을 통해 공유


Srch.U.isSameHost Method (DisplayTemplatesSrch)

Indicates whether the given URL contains the same hostname.

Srch.U.isSameHost(url, hostname)

Return value

true if the URL has the same hostname; false otherwise.

Parameters

  • url
    The URL to test.

  • hostname
    The hostname to compare with.