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

port

open var port: String(source)

The port property of the HTMLAnchorElement interface is a string containing the port number of the element's href. If the port is the default for the protocol (80 for ws: and http:, 443 for wss: and https:, and 21 for ftp:), this property contains an empty string, "".

MDN Reference

Generated by Dokka
© 2026 Copyright