Kotlin Wrappers API Reference
      Target filter
Search in API
Skip to content
    Kotlin Wrappers API Reference
kotlin-browser/web.html/HyperlinkElementUtils/hostname

hostname

open var hostname: String(source)

The hostname property of the HTMLAnchorElement interface is a string containing either the domain name or IP address of the element's href. If the URL does not have a hostname, this property contains an empty string, "". IPv4 and IPv6 addresses are normalized, such as stripping leading zeros, and domain names are converted to IDN.

MDN Reference

Generated by Dokka
© 2026 Copyright